com.im.df.api 5.9

com.im.df.api.util.xml
Interface StateFactory.FinishableBean

Enclosing interface:
StateFactory

public static interface StateFactory.FinishableBean

Allows the bean to fix up itself after the whole bean is deserialized. The bean may optimize its setters so they do not fire (during deserialization) property change events or update its siblings.


Method Summary
 Object readResolve(Lookup context)
          Informs the bean that the reading of properties has been finished.
 

Method Detail

readResolve

Object readResolve(Lookup context)
                   throws IOException
Informs the bean that the reading of properties has been finished. The bean may return itself (this), or replace the instance with another bean. The function is similar to readResolve method in Java Serialization API.

Parameters:
context - The Lookup context used during reading
Returns:
The deserialized and fixed-up object, either the bean itself, or its replacement object.
Throws:
IOException

com.im.df.api 5.9