Class TreeXmlUnmarshallerManagedObjectSource
- java.lang.Object
-
- net.officefloor.frame.api.managedobject.source.impl.AbstractAsyncManagedObjectSource<O,F>
-
- net.officefloor.frame.api.managedobject.source.impl.AbstractManagedObjectSource<None,None>
-
- net.officefloor.plugin.xml.unmarshall.tree.TreeXmlUnmarshallerManagedObjectSource
-
- All Implemented Interfaces:
ManagedObjectSource<None,None>
public class TreeXmlUnmarshallerManagedObjectSource extends AbstractManagedObjectSource<None,None>
ManagedObjectSource
to obtain aTreeXmlUnmarshaller
.- Author:
- Daniel Sagenschneider
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class net.officefloor.frame.api.managedobject.source.impl.AbstractAsyncManagedObjectSource
AbstractAsyncManagedObjectSource.DependencyLabeller<K extends java.lang.Enum<K>>, AbstractAsyncManagedObjectSource.ExecutionLabeller, AbstractAsyncManagedObjectSource.Labeller<K extends java.lang.Enum<K>>, AbstractAsyncManagedObjectSource.MetaDataContext<O extends java.lang.Enum<O>,F extends java.lang.Enum<F>>, AbstractAsyncManagedObjectSource.SpecificationContext
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
CONFIGURATION_PROPERTY_NAME
Property name to obtain theInputStream
for configuring theTreeXmlUnmarshaller
.
-
Constructor Summary
Constructors Constructor Description TreeXmlUnmarshallerManagedObjectSource()
Default constructor to enable creation of an instance.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static XmlMappingMetaData
createXmlMappingMetaData(java.io.InputStream configuration, TranslatorRegistry translatorRegistry)
Creates theXmlMappingMetaData
from the input configuration.protected ManagedObject
getManagedObject()
Synchronously obtains theManagedObject
.protected void
loadMetaData(AbstractAsyncManagedObjectSource.MetaDataContext<None,None> context)
Overridden to load meta-data.protected void
loadSpecification(AbstractAsyncManagedObjectSource.SpecificationContext context)
Overridden to load specifications.-
Methods inherited from class net.officefloor.frame.api.managedobject.source.impl.AbstractManagedObjectSource
sourceManagedObject
-
Methods inherited from class net.officefloor.frame.api.managedobject.source.impl.AbstractAsyncManagedObjectSource
getSpecification, init, start, stop
-
-
-
-
Field Detail
-
CONFIGURATION_PROPERTY_NAME
public static final java.lang.String CONFIGURATION_PROPERTY_NAME
Property name to obtain theInputStream
for configuring theTreeXmlUnmarshaller
.- See Also:
- Constant Field Values
-
-
Method Detail
-
createXmlMappingMetaData
public static XmlMappingMetaData createXmlMappingMetaData(java.io.InputStream configuration, TranslatorRegistry translatorRegistry) throws XmlMarshallException
Creates theXmlMappingMetaData
from the input configuration.- Parameters:
configuration
- Configuration.translatorRegistry
-TranslatorRegistry
.- Returns:
XmlMappingMetaData
from the input configuration.- Throws:
XmlMarshallException
- If fails to obtain theXmlMappingMetaData
.
-
loadSpecification
protected void loadSpecification(AbstractAsyncManagedObjectSource.SpecificationContext context)
Description copied from class:AbstractAsyncManagedObjectSource
Overridden to load specifications.- Specified by:
loadSpecification
in classAbstractAsyncManagedObjectSource<None,None>
- Parameters:
context
- Specifications.
-
loadMetaData
protected void loadMetaData(AbstractAsyncManagedObjectSource.MetaDataContext<None,None> context) throws java.lang.Exception
Description copied from class:AbstractAsyncManagedObjectSource
Overridden to load meta-data.- Specified by:
loadMetaData
in classAbstractAsyncManagedObjectSource<None,None>
- Parameters:
context
- Meta-data.- Throws:
java.lang.Exception
- If fails to load the meta-data.
-
getManagedObject
protected ManagedObject getManagedObject() throws java.lang.Throwable
Description copied from class:AbstractManagedObjectSource
Synchronously obtains theManagedObject
.- Specified by:
getManagedObject
in classAbstractManagedObjectSource<None,None>
- Returns:
ManagedObject
.- Throws:
java.lang.Throwable
- If fails to obtain theManagedObject
.
-
-