Class TreeXmlUnmarshallerFactory
java.lang.Object
net.officefloor.plugin.xml.unmarshall.tree.TreeXmlUnmarshallerFactory
Factory for the creation of a TreeXmlUnmarshaller.
This is to ease obtaining a TreeXmlUnmarshaller but if utilising
office floor framework should plug-in via
TreeXmlUnmarshallerManagedObjectSource.
- Author:
- Daniel Sagenschneider
-
Method Summary
Modifier and TypeMethodDescriptioncreateUnmarshaller(InputStream configuration) Creates theTreeXmlUnmarshallerfrom the input configuration.createUnmarshaller(XmlMappingMetaData configuration) Creates theTreeXmlUnmarshallerfrom the input configuration.static TreeXmlUnmarshallerFactoryObtains the singletonTreeXmlUnmarshaller.
-
Method Details
-
getInstance
Obtains the singletonTreeXmlUnmarshaller.- Returns:
- Singleton
TreeXmlUnmarshaller.
-
createUnmarshaller
public TreeXmlUnmarshaller createUnmarshaller(InputStream configuration) throws XmlMarshallException Creates theTreeXmlUnmarshallerfrom the input configuration.- Parameters:
configuration- Configuration of theTreeXmlUnmarshaller.- Returns:
TreeXmlUnmarshallerfrom the configuration.- Throws:
XmlMarshallException- If fails to create theTreeXmlUnmarshaller.
-
createUnmarshaller
public TreeXmlUnmarshaller createUnmarshaller(XmlMappingMetaData configuration) throws XmlMarshallException Creates theTreeXmlUnmarshallerfrom the input configuration.- Parameters:
configuration- Configuration of theTreeXmlUnmarshaller.- Returns:
TreeXmlUnmarshallerfrom the configuration.- Throws:
XmlMarshallException- If fails to create theTreeXmlUnmarshaller.
-