Class ExecutiveLoaderImpl
- java.lang.Object
-
- net.officefloor.compile.impl.executive.ExecutiveLoaderImpl
-
- All Implemented Interfaces:
ExecutiveLoader
,IssueTarget
public class ExecutiveLoaderImpl extends java.lang.Object implements ExecutiveLoader, IssueTarget
ExecutiveLoader
implementation.- Author:
- Daniel Sagenschneider
-
-
Constructor Summary
Constructors Constructor Description ExecutiveLoaderImpl(Node node, 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.<TS extends ExecutiveSource>
ExecutiveTypeloadExecutiveType(java.lang.Class<TS> executiveSourceClass, PropertyList propertyList)
Loads and returns theExecutiveType
sourced from theExecutiveSource
.ExecutiveType
loadExecutiveType(ExecutiveSource executiveSource, PropertyList propertyList)
Loads and returns theExecutiveType
sourced from theExecutiveSource
.<TS extends ExecutiveSource>
PropertyListloadSpecification(java.lang.Class<TS> executiveSourceClass)
PropertyList
loadSpecification(ExecutiveSource executiveSource)
-
-
-
Constructor Detail
-
ExecutiveLoaderImpl
public ExecutiveLoaderImpl(Node node, NodeContext nodeContext)
Instantiate.- Parameters:
node
-Node
requiring theExecutive
.nodeContext
-NodeContext
.
-
-
Method Detail
-
loadSpecification
public <TS extends ExecutiveSource> PropertyList loadSpecification(java.lang.Class<TS> executiveSourceClass)
Description copied from interface:ExecutiveLoader
- Specified by:
loadSpecification
in interfaceExecutiveLoader
- Type Parameters:
TS
-ExecutiveSource
type.- Parameters:
executiveSourceClass
- Class of theExecutiveSource
.- Returns:
PropertyList
of theExecutiveSourceProperty
instances of theExecutiveSourceSpecification
ornull
if issues, which are reported to theCompilerIssues
.
-
loadSpecification
public PropertyList loadSpecification(ExecutiveSource executiveSource)
Description copied from interface:ExecutiveLoader
- Specified by:
loadSpecification
in interfaceExecutiveLoader
- Parameters:
executiveSource
-ExecutiveSource
instance.- Returns:
PropertyList
of theExecutiveSourceProperty
instances of theExecutiveSourceSpecification
ornull
if issues, which are reported to theCompilerIssues
.
-
loadExecutiveType
public <TS extends ExecutiveSource> ExecutiveType loadExecutiveType(java.lang.Class<TS> executiveSourceClass, PropertyList propertyList)
Description copied from interface:ExecutiveLoader
Loads and returns theExecutiveType
sourced from theExecutiveSource
.- Specified by:
loadExecutiveType
in interfaceExecutiveLoader
- Type Parameters:
TS
-ExecutiveSource
type.- Parameters:
executiveSourceClass
- Class of theExecutiveSource
.propertyList
-PropertyList
containing the properties to source theExecutiveType
.- Returns:
ExecutiveType
ornull
if issues, which are reported to theCompilerIssues
.
-
loadExecutiveType
public ExecutiveType loadExecutiveType(ExecutiveSource executiveSource, PropertyList propertyList)
Description copied from interface:ExecutiveLoader
Loads and returns theExecutiveType
sourced from theExecutiveSource
.- Specified by:
loadExecutiveType
in interfaceExecutiveLoader
- Parameters:
executiveSource
-ExecutiveSource
instance.propertyList
-PropertyList
containing the properties to source theExecutiveType
.- Returns:
ExecutiveType
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.
-
-