com.openharbor.beck.unmarshal
Interface ObjectFactory

All Known Implementing Classes:
DefaultObjectFactory

public interface ObjectFactory

Instantiates objects unmarshalled from XML.


Method Summary
 java.lang.Object newObject(Unmarshaller unmarshaller)
          Instantiate an object to be mapped from XML.
 

Method Detail

newObject

public java.lang.Object newObject(Unmarshaller unmarshaller)
                           throws java.lang.Exception
Instantiate an object to be mapped from XML.

Parameters:
unmarshaller - contains information about the XML and the expected object class.
Returns:
a new object, which should be an instance of unmarshaller.getObjectClass() or a class that extends that class or implements that interface.
Throws:
java.lang.Exception