Joda - Next Generation Beans |
|
Project
Joda Time
Joda Primitives
Joda Beans
Contributing
  |
What are Joda Beans ?
Joda Beans is a Java open-source project to make JavaBean properties fully accessible... JavaBeans have helped Java's success by providing a naming convention for access to an object's properties. However, a naming convention is of much less use when generic programmatic access to properties is required from frameworks such as XML input/output, XPath and Swing components. Joda changes this, by turning each property on a bean into a first class object. To achieve this, a third method that returns a Joda Property object is added to the normal get and set methods. This simple change, backed by the Joda framework, enables programs to work in a whole new way. Using Joda to manage the surname on a person object you can write: String surname = person.getSurname(); // JavaBeans style, or... String surname = person.surname().get(); // Joda style In addition to this methods are provided for generic access to the Property objects: // Generic access, without reflection Property surname = person.getProperty("surname"); Map propertyMap = person.getPropertyMap(); person.surname().setAttribute("errorCode", "MANDATORY"); And this is only a flavour of what is available, see the design overview for more detail. Benefits
Current Status
NOT ACTIVELY MAINTAINED If you have any questions, just email scolebourne@users.sourceforge.net |
Last updated 31st January 2004.
Website and development hosting by SourceForge.
Copyright (c) 2001-2004 Stephen Colebourne. All rights reserved.
Java and JavaBeans are trademarks of Sun Microsystems.