Class ManagedObjectLoaderImpl
- java.lang.Object
-
- net.officefloor.compile.impl.managedobject.ManagedObjectLoaderImpl
-
- All Implemented Interfaces:
ManagedObjectLoader,IssueTarget
public class ManagedObjectLoaderImpl extends java.lang.Object implements ManagedObjectLoader, IssueTarget
ManagedObjectLoaderimplementation.- Author:
- Daniel Sagenschneider
-
-
Constructor Summary
Constructors Constructor Description ManagedObjectLoaderImpl(Node node, OfficeNode officeNode, NodeContext nodeContext)Instantiate.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddIssue(java.lang.String issueDescription)Adds the issue.voidaddIssue(java.lang.String issueDescription, java.lang.Throwable cause)Adds the issue.<D extends java.lang.Enum<D>,F extends java.lang.Enum<F>,MS extends ManagedObjectSource<D,F>>
ManagedObjectType<D>loadManagedObjectType(java.lang.Class<MS> managedObjectSourceClass, PropertyList propertyList)Loads and returns theManagedObjectTypefor theManagedObjectSource.<D extends java.lang.Enum<D>,F extends java.lang.Enum<F>>
ManagedObjectType<D>loadManagedObjectType(ManagedObjectSource<D,F> managedObjectSource, PropertyList propertyList)Loads and returns theManagedObjectTypefor theManagedObjectSource.<D extends java.lang.Enum<D>,F extends java.lang.Enum<F>,MS extends ManagedObjectSource<D,F>>
OfficeFloorManagedObjectSourceTypeloadOfficeFloorManagedObjectSourceType(java.lang.String managedObjectSourceName, java.lang.Class<MS> managedObjectSourceClass, PropertyList propertyList)Loads and returns theOfficeFloorManagedObjectSourceTypefor theManagedObjectSource.<D extends java.lang.Enum<D>,F extends java.lang.Enum<F>,MS extends ManagedObjectSource<D,F>>
OfficeFloorManagedObjectSourceTypeloadOfficeFloorManagedObjectSourceType(java.lang.String managedObjectSourceName, MS managedObjectSource, PropertyList propertyList)Loads and returns theOfficeFloorManagedObjectSourceTypefor theManagedObjectSource.<D extends java.lang.Enum<D>,H extends java.lang.Enum<H>,MS extends ManagedObjectSource<D,H>>
PropertyListloadSpecification(java.lang.Class<MS> managedObjectSourceClass)Loads and returns thePropertyListfrom theManagedObjectSourceSpecificationfor theManagedObjectSource.<D extends java.lang.Enum<D>,H extends java.lang.Enum<H>>
PropertyListloadSpecification(ManagedObjectSource<D,H> managedObjectSource)Loads thePropertyListspecification.
-
-
-
Constructor Detail
-
ManagedObjectLoaderImpl
public ManagedObjectLoaderImpl(Node node, OfficeNode officeNode, NodeContext nodeContext)
Instantiate.- Parameters:
node-Noderequiring theManagedObject.officeNode-OfficeNode. May benullif not loading withinOfficeNode.nodeContext-NodeContext.
-
-
Method Detail
-
loadSpecification
public <D extends java.lang.Enum<D>,H extends java.lang.Enum<H>,MS extends ManagedObjectSource<D,H>> PropertyList loadSpecification(java.lang.Class<MS> managedObjectSourceClass)
Description copied from interface:ManagedObjectLoaderLoads and returns thePropertyListfrom theManagedObjectSourceSpecificationfor theManagedObjectSource.- Specified by:
loadSpecificationin interfaceManagedObjectLoader- Type Parameters:
D- Dependency key type.H- Flow key type.MS-ManagedObjectSourcetype.- Parameters:
managedObjectSourceClass-ManagedObjectSourceclass.- Returns:
PropertyListof theManagedObjectSourcePropertyinstances of theManagedObjectSourceSpecificationornullif issue, which is reported to theCompilerIssues.
-
loadSpecification
public <D extends java.lang.Enum<D>,H extends java.lang.Enum<H>> PropertyList loadSpecification(ManagedObjectSource<D,H> managedObjectSource)
Loads thePropertyListspecification.- Specified by:
loadSpecificationin interfaceManagedObjectLoader- Type Parameters:
D- Dependency key.H- Flow key.- Parameters:
managedObjectSource-ManagedObjectSource.- Returns:
PropertyListspecification ornullif issue.
-
loadManagedObjectType
public <D extends java.lang.Enum<D>,F extends java.lang.Enum<F>,MS extends ManagedObjectSource<D,F>> ManagedObjectType<D> loadManagedObjectType(java.lang.Class<MS> managedObjectSourceClass, PropertyList propertyList)
Description copied from interface:ManagedObjectLoaderLoads and returns theManagedObjectTypefor theManagedObjectSource.- Specified by:
loadManagedObjectTypein interfaceManagedObjectLoader- Type Parameters:
D- Dependency key type.F- Flow key type.MS-ManagedObjectSourcetype.- Parameters:
managedObjectSourceClass- Class of theManagedObjectSource.propertyList-PropertyListcontaining the properties to source theManagedObjectType.- Returns:
ManagedObjectTypeornullif issues, which are reported to theCompilerIssues.
-
loadManagedObjectType
public <D extends java.lang.Enum<D>,F extends java.lang.Enum<F>> ManagedObjectType<D> loadManagedObjectType(ManagedObjectSource<D,F> managedObjectSource, PropertyList propertyList)
Description copied from interface:ManagedObjectLoaderLoads and returns theManagedObjectTypefor theManagedObjectSource.- Specified by:
loadManagedObjectTypein interfaceManagedObjectLoader- Type Parameters:
D- Dependency key type.F- Flow key type.- Parameters:
managedObjectSource-ManagedObjectSourceinstance to use.propertyList-PropertyListcontaining the properties to source theManagedObjectType.- Returns:
ManagedObjectTypeornullif issues, which are reported to theCompilerIssues.
-
loadOfficeFloorManagedObjectSourceType
public <D extends java.lang.Enum<D>,F extends java.lang.Enum<F>,MS extends ManagedObjectSource<D,F>> OfficeFloorManagedObjectSourceType loadOfficeFloorManagedObjectSourceType(java.lang.String managedObjectSourceName, java.lang.Class<MS> managedObjectSourceClass, PropertyList propertyList)
Description copied from interface:ManagedObjectLoaderLoads and returns theOfficeFloorManagedObjectSourceTypefor theManagedObjectSource.- Specified by:
loadOfficeFloorManagedObjectSourceTypein interfaceManagedObjectLoader- Type Parameters:
D- Dependency key type.F- Flow key type.MS-ManagedObjectSourcetype.- Parameters:
managedObjectSourceName- Name of theManagedObjectSource.managedObjectSourceClass- Class of theManagedObjectSource.propertyList-PropertyListcontaining the properties to source theOfficeFloorManagedObjectSourceType.- Returns:
OfficeFloorManagedObjectSourceTypeornullif issues, which are reported to theCompilerIssues.
-
loadOfficeFloorManagedObjectSourceType
public <D extends java.lang.Enum<D>,F extends java.lang.Enum<F>,MS extends ManagedObjectSource<D,F>> OfficeFloorManagedObjectSourceType loadOfficeFloorManagedObjectSourceType(java.lang.String managedObjectSourceName, MS managedObjectSource, PropertyList propertyList)
Description copied from interface:ManagedObjectLoaderLoads and returns theOfficeFloorManagedObjectSourceTypefor theManagedObjectSource.- Specified by:
loadOfficeFloorManagedObjectSourceTypein interfaceManagedObjectLoader- Type Parameters:
D- Dependency key type.F- Flow key type.MS-ManagedObjectSourcetype.- Parameters:
managedObjectSourceName- Name of theManagedObjectSource.managedObjectSource-ManagedObjectSourceinstances to use.propertyList-PropertyListcontaining the properties to source theOfficeFloorManagedObjectSourceType.- Returns:
OfficeFloorManagedObjectSourceTypeornullif issues, which are reported to theCompilerIssues.
-
addIssue
public void addIssue(java.lang.String issueDescription)
Description copied from interface:IssueTargetAdds the issue.- Specified by:
addIssuein interfaceIssueTarget- Parameters:
issueDescription- Description of the issue.
-
addIssue
public void addIssue(java.lang.String issueDescription, java.lang.Throwable cause)Description copied from interface:IssueTargetAdds the issue.- Specified by:
addIssuein interfaceIssueTarget- Parameters:
issueDescription- Description of the issue.cause- Cause of the issue.
-
-