java.beans.PersistenceDelegate API, and overriding the default persistence algorithm based upon the runtime structure for Controls. It selectively registers other PersistenceDelegate instances for other nested entities, as required, to ensure that runtime-defined state and object relationships are properly maintained. For the BeanInfo of all generated ControlJavaBeans, a BeanPersistenceDelegate instance will be registered as the "persistenceDelegate" attribute in the BeanDescriptor. The standard java.beans.Encoder
persistence delegate lookup mechanism recognizes this attribute and will use the instance to persist an ControlBeans written to the encoding stream.
The BeanPersistence class implements optimized property persistence based upon the fact that the ControlBean already has a map containing all non-default property state. Rather than using the standard (and slower) algorithm of comparing the encoding instance against a 'clean' instance, the delegate can simply retrieve the map and persist the values contained within it.
@see java.beans.XMLEncoder
@see java.beans.PersistenceDelegate
|
|
|
|
|
|
|
|
|
|
|
|