com.im.df.api 5.9

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

All Known Implementing Classes:
BasicPersister

public interface StateFactory


Nested Class Summary
static interface StateFactory.EnvReporter
           
static interface StateFactory.FinishableBean
          Allows the bean to fix up itself after the whole bean is deserialized.
static interface StateFactory.Reader
           
static interface StateFactory.Writer
           
 
Method Summary
 StateFactory.Reader createReader(Lookup context, Class<?> expectedType, Node parent, DFEnvironmentRO env)
          Returns a reader instance for the parent and the prototype bean.
 StateFactory.Writer createWriter(Lookup context, Object bean, DFEnvironmentRO env)
          Returns a writer instance for the bean
 QName getQName(Object bean)
           
 Class<?> getType(Node n)
           
 boolean isPrimitive(Class<?> type)
           
 

Method Detail

getType

Class<?> getType(Node n)
Returns:
The type of the bean to be deserialized

getQName

QName getQName(Object bean)
Returns:
QName of the element to be created

isPrimitive

boolean isPrimitive(Class<?> type)
Returns:
If true, the Factory is willing to write to an attribute

createWriter

StateFactory.Writer createWriter(Lookup context,
                                 Object bean,
                                 DFEnvironmentRO env)
Returns a writer instance for the bean


createReader

StateFactory.Reader createReader(Lookup context,
                                 Class<?> expectedType,
                                 Node parent,
                                 DFEnvironmentRO env)
Returns a reader instance for the parent and the prototype bean. Note that the prototype bean may be null.


com.im.df.api 5.9