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
ExecutiveLoaderimplementation.- 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 voidaddIssue(java.lang.String issueDescription)Adds the issue.voidaddIssue(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 theExecutiveTypesourced from theExecutiveSource.ExecutiveTypeloadExecutiveType(ExecutiveSource executiveSource, PropertyList propertyList)Loads and returns theExecutiveTypesourced from theExecutiveSource.<TS extends ExecutiveSource>
PropertyListloadSpecification(java.lang.Class<TS> executiveSourceClass)PropertyListloadSpecification(ExecutiveSource executiveSource)
-
-
-
Constructor Detail
-
ExecutiveLoaderImpl
public ExecutiveLoaderImpl(Node node, NodeContext nodeContext)
Instantiate.- Parameters:
node-Noderequiring theExecutive.nodeContext-NodeContext.
-
-
Method Detail
-
loadSpecification
public <TS extends ExecutiveSource> PropertyList loadSpecification(java.lang.Class<TS> executiveSourceClass)
Description copied from interface:ExecutiveLoader- Specified by:
loadSpecificationin interfaceExecutiveLoader- Type Parameters:
TS-ExecutiveSourcetype.- Parameters:
executiveSourceClass- Class of theExecutiveSource.- Returns:
PropertyListof theExecutiveSourcePropertyinstances of theExecutiveSourceSpecificationornullif issues, which are reported to theCompilerIssues.
-
loadSpecification
public PropertyList loadSpecification(ExecutiveSource executiveSource)
Description copied from interface:ExecutiveLoader- Specified by:
loadSpecificationin interfaceExecutiveLoader- Parameters:
executiveSource-ExecutiveSourceinstance.- Returns:
PropertyListof theExecutiveSourcePropertyinstances of theExecutiveSourceSpecificationornullif issues, which are reported to theCompilerIssues.
-
loadExecutiveType
public <TS extends ExecutiveSource> ExecutiveType loadExecutiveType(java.lang.Class<TS> executiveSourceClass, PropertyList propertyList)
Description copied from interface:ExecutiveLoaderLoads and returns theExecutiveTypesourced from theExecutiveSource.- Specified by:
loadExecutiveTypein interfaceExecutiveLoader- Type Parameters:
TS-ExecutiveSourcetype.- Parameters:
executiveSourceClass- Class of theExecutiveSource.propertyList-PropertyListcontaining the properties to source theExecutiveType.- Returns:
ExecutiveTypeornullif issues, which are reported to theCompilerIssues.
-
loadExecutiveType
public ExecutiveType loadExecutiveType(ExecutiveSource executiveSource, PropertyList propertyList)
Description copied from interface:ExecutiveLoaderLoads and returns theExecutiveTypesourced from theExecutiveSource.- Specified by:
loadExecutiveTypein interfaceExecutiveLoader- Parameters:
executiveSource-ExecutiveSourceinstance.propertyList-PropertyListcontaining the properties to source theExecutiveType.- Returns:
ExecutiveTypeornullif 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.
-
-