|
||||||||||
| PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES | |||||||||
See:
Description
| Interface Summary | |
|---|---|
| Decorator | Decorator
Decorates an object (POJO) with State. |
| MethodMeta | Metadata of an jva.lang.reflect.Method MethodMeta wraps the actual Method object with user defined method's UI name, description and formatting object. |
| Property | Property of an object (POJO) Properties are actually object methods with interfaces to obtain their values. |
| Selector | Selectors are used to select only those POJO methods which are suitable for
State. |
| State | State of an object (POJO). |
| StatePrototype | A State with ability to clone and factory method for new Properties. |
| Class Summary | |
|---|---|
| StateFormat | Format a State object to a string. |
| Exception Summary | |
|---|---|
| DecorationException | Indicate an internal error during POJO decoration created on Jul 18, 2005 |
This library provides with implementation and APIs for observing POJO state applicable in various uses cases.
Typical usage scenario is:
// create new decorator object
Decorator decorator = new SnapshotDecorator();
// set imutable properties
decorator.setSelector( new BeanSelector() );
decorator.setFormat( new PropertiesStateFormat() );
// decorate a POJO
// this object can be used to decorate other POJOs as well
State state = decorator.decorate( myPOJO );
// print the state to the stdout
System.out( state.toString() );
|
||||||||||
| PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES | |||||||||