From: Andy D. <an...@ma...> - 2004-06-03 20:48:52
|
I've noticed quite a bit of support in spring-rcp for JavaBeans and properties (binding things to a property, setting up input rules for a property, etc). This is great. However, there are times when we work at a more "meta" level than JavaBeans in a UI. For example, some people use Maps of name/value pairs instead of JavaBeans, others might use DynaBeans (from Apache), and others might use service data objects, where you retreive property values via get(propertyName) or set(propertyName, value) calls. I believe it would be worth it to keep spring-rcp bean/property access generic enough that it could be used with any kind of "object with properties" concept, and not tied to JavaBeans alone. It could be something as simple as some sort of "PropertyAccessor" interface with a default JavaBeans implementation. Thoughts or comments? |