has posted 8 posts at DZone. View Full User Profile

The New Generation of Unified Objects

  • submit to reddit

The UJO Framework was essentially extended to version 0.80. Some news are:

  • the new interface UjoExt is available for a better comfort to developers. The interface supports for example a chaining of properties or setters
  • optimized deserialization of UJO objects, which is now faster as JAXB 2.1.
  • simplification of some methods by a new interface UjoAction

UJO Framework provides objects with a different architecture from JavaBeans.
The original idea was a toy with generic data types of Java 5.0 however over time it appears, that the architecture has some exciting features:
  • an easy object introspection without a heavy PropertyDescriptor implementation
  • a transfer of the UJO properties (not values) by a collection to a method
  • the core of the building has two interfaces for an easy implementation

These properties open up new possibilities for the use in the J2EE mainly in a production of generic operations over objects.  Framework contains some tools for managing the UJO object in addition. See a short motivational presentation for more information.

Slide show

You can find a link to a reference application called jWorkSheet on the project home page.
The jWorkSheet is a project time tracker desktop application which uses the architecture UJO objects consistently for all persistent objects.

I welcome all feedback and comments.
Pavel Ponec


Published at DZone with permission of its author, .

(Note: Opinions expressed in this article and its replies are the opinions of their respective authors and not those of DZone, Inc.)


David Beutel replied on Tue, 2008/09/09 - 2:13pm

Interesting alternative to beans.  Just looking at the example, could newProperty() use type inferencing?

replied on Wed, 2008/09/10 - 2:17am in response to: David Beutel

Yes, the method use it for a simplification, however it is possible to use a standard constructor.

See a JavaDoc of the newProperty() method:





Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.