Ben Galbraith made the following great point in his recent blog entry in praise of intelligent tools such as IDEA.
We use CGLIB to enhance a half-baked Java Bean with no firePropertyChange() invocations in its setters, into a bean that does fire PropertyChangeEvent's from its setters.
This "Jelly Beans" series deals with data entities, as required for the "Gooey Beans" series' demos. Together with "Hyper Beans", i'm calling them the "Foundation Trilogy" :)
And yes, it's a scifi/fantasy trilogy in 42 parts, essentially about writing database applications using Swing.
Here are some problems and possible solutions (today) relating to bean properties.
Getters and Setters
Problem. We don't wanna write lots of getters and setters, or see them.
Solution. We use our IDE to generate them.
Wishlist. Maybe we wanna fold basic getters and setters right out of view en masse.
As Richard Bair points out we really need a way to get a PropertyDescriptor easily, i.e. meta data and support for bean properties.
Before someone tags me (and then i have to find five others who haven't been tagged yet, which will require some effort on my part), and in case someone doesn't ;) Here goes me taking the fifth...
It's on CVS here cos i like to use an editor to edit stuff eg. Netbeans, and right-click to commit, images and all.