More on Properties without Strings
What I described in my entry on the 17th was after building a proof of concept. Now I have used this in a real live application, and filled in some of the gaps and also proved that it actually works.
Of course, as has been pointed out, this is only a place holder until Sun (or the OpenJDK community) get around to proper property support in the compiler, and I would drop this like a shot if ever it comes to pass.
I had tried Annotations, but having to build a separate class, even if it is generated automatically, strikes me as second best. It is actually also difficult to find the Annotations sometimes, as for instance the PropertyInfo data returned as the class of the property the return type of the getter, not the type (with annotations) of the underlying property.
This code would also be useful not just with BeanBinding (which seems about as moribund as property support), but also with JGoodies bindings, or with the UFacekit work that is being done to make JFace from Eclipse-SWT work with Swing and Qt. But more on UFacekit later.
Read More




