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
ManagedObjectLoader
implementation.- 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 void
addIssue(java.lang.String issueDescription)
Adds the issue.void
addIssue(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 theManagedObjectType
for 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 theManagedObjectType
for 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 theOfficeFloorManagedObjectSourceType
for 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 theOfficeFloorManagedObjectSourceType
for 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 thePropertyList
from theManagedObjectSourceSpecification
for theManagedObjectSource
.<D extends java.lang.Enum<D>,H extends java.lang.Enum<H>>
PropertyListloadSpecification(ManagedObjectSource<D,H> managedObjectSource)
Loads thePropertyList
specification.
-
-
-
Constructor Detail
-
ManagedObjectLoaderImpl
public ManagedObjectLoaderImpl(Node node, OfficeNode officeNode, NodeContext nodeContext)
Instantiate.- Parameters:
node
-Node
requiring theManagedObject
.officeNode
-OfficeNode
. May benull
if 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:ManagedObjectLoader
Loads and returns thePropertyList
from theManagedObjectSourceSpecification
for theManagedObjectSource
.- Specified by:
loadSpecification
in interfaceManagedObjectLoader
- Type Parameters:
D
- Dependency key type.H
- Flow key type.MS
-ManagedObjectSource
type.- Parameters:
managedObjectSourceClass
-ManagedObjectSource
class.- Returns:
PropertyList
of theManagedObjectSourceProperty
instances of theManagedObjectSourceSpecification
ornull
if 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 thePropertyList
specification.- Specified by:
loadSpecification
in interfaceManagedObjectLoader
- Type Parameters:
D
- Dependency key.H
- Flow key.- Parameters:
managedObjectSource
-ManagedObjectSource
.- Returns:
PropertyList
specification ornull
if 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:ManagedObjectLoader
Loads and returns theManagedObjectType
for theManagedObjectSource
.- Specified by:
loadManagedObjectType
in interfaceManagedObjectLoader
- Type Parameters:
D
- Dependency key type.F
- Flow key type.MS
-ManagedObjectSource
type.- Parameters:
managedObjectSourceClass
- Class of theManagedObjectSource
.propertyList
-PropertyList
containing the properties to source theManagedObjectType
.- Returns:
ManagedObjectType
ornull
if 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:ManagedObjectLoader
Loads and returns theManagedObjectType
for theManagedObjectSource
.- Specified by:
loadManagedObjectType
in interfaceManagedObjectLoader
- Type Parameters:
D
- Dependency key type.F
- Flow key type.- Parameters:
managedObjectSource
-ManagedObjectSource
instance to use.propertyList
-PropertyList
containing the properties to source theManagedObjectType
.- Returns:
ManagedObjectType
ornull
if 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:ManagedObjectLoader
Loads and returns theOfficeFloorManagedObjectSourceType
for theManagedObjectSource
.- Specified by:
loadOfficeFloorManagedObjectSourceType
in interfaceManagedObjectLoader
- Type Parameters:
D
- Dependency key type.F
- Flow key type.MS
-ManagedObjectSource
type.- Parameters:
managedObjectSourceName
- Name of theManagedObjectSource
.managedObjectSourceClass
- Class of theManagedObjectSource
.propertyList
-PropertyList
containing the properties to source theOfficeFloorManagedObjectSourceType
.- Returns:
OfficeFloorManagedObjectSourceType
ornull
if 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:ManagedObjectLoader
Loads and returns theOfficeFloorManagedObjectSourceType
for theManagedObjectSource
.- Specified by:
loadOfficeFloorManagedObjectSourceType
in interfaceManagedObjectLoader
- Type Parameters:
D
- Dependency key type.F
- Flow key type.MS
-ManagedObjectSource
type.- Parameters:
managedObjectSourceName
- Name of theManagedObjectSource
.managedObjectSource
-ManagedObjectSource
instances to use.propertyList
-PropertyList
containing the properties to source theOfficeFloorManagedObjectSourceType
.- Returns:
OfficeFloorManagedObjectSourceType
ornull
if issues, which are reported to theCompilerIssues
.
-
addIssue
public void addIssue(java.lang.String issueDescription)
Description copied from interface:IssueTarget
Adds the issue.- Specified by:
addIssue
in interfaceIssueTarget
- Parameters:
issueDescription
- Description of the issue.
-
addIssue
public void addIssue(java.lang.String issueDescription, java.lang.Throwable cause)
Description copied from interface:IssueTarget
Adds the issue.- Specified by:
addIssue
in interfaceIssueTarget
- Parameters:
issueDescription
- Description of the issue.cause
- Cause of the issue.
-
-