Class TreeXmlMarshallerFactory
java.lang.Object
net.officefloor.plugin.xml.marshall.tree.TreeXmlMarshallerFactory
Factory for the creation of a TreeXmlMarshaller.
This is to ease obtaining a TreeXmlMarshaller but if utilising office
floor framework should plug-in via
TreeXmlMarshallerManagedObjectSource.
- Author:
- Daniel Sagenschneider
-
Method Summary
Modifier and TypeMethodDescriptioncreateMarshaller(InputStream configuration) Creates theTreeXmlMarshallerfrom the input configuration.static TreeXmlMarshallerFactoryObtains the singletonTreeXmlMarshallerFactory.
-
Method Details
-
getInstance
Obtains the singletonTreeXmlMarshallerFactory.- Returns:
- Singleton
TreeXmlMarshallerFactory.
-
createMarshaller
Creates theTreeXmlMarshallerfrom the input configuration.- Parameters:
configuration- Configuration of theTreeXmlMarshaller.- Returns:
- Configured
TreeXmlMarshaller. - Throws:
XmlMarshallException- If fails to create theTreeXmlMarshaller.
-