Class GovernanceLoaderImpl
java.lang.Object
net.officefloor.compile.impl.governance.GovernanceLoaderImpl
- All Implemented Interfaces:
GovernanceLoader,IssueTarget
GovernanceLoader implementation.- Author:
- Daniel Sagenschneider
-
Constructor Summary
ConstructorsConstructorDescriptionGovernanceLoaderImpl(Node node, OfficeNode officeNode, NodeContext nodeContext, boolean isLoadingType) Instantiate. -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds the issue.voidAdds the issue.<I,F extends Enum<F>, GS extends GovernanceSource<I, F>>
GovernanceType<I,F> loadGovernanceType(GS governanceSource, PropertyList properties) Loads and returns theGovernanceTypefrom theGovernanceSource.<I,F extends Enum<F>, GS extends GovernanceSource<I, F>>
GovernanceType<I,F> loadGovernanceType(Class<GS> governanceSourceClass, PropertyList properties) Loads and returns theGovernanceTypefrom theGovernanceSourceclass.<I,F extends Enum<F>, GS extends GovernanceSource<I, F>>
PropertyListloadSpecification(Class<GS> governanceSourceClass)
-
Constructor Details
-
GovernanceLoaderImpl
public GovernanceLoaderImpl(Node node, OfficeNode officeNode, NodeContext nodeContext, boolean isLoadingType) Instantiate.- Parameters:
node-Noderequiring theGovernance.officeNode-OfficeNode. May benullif not loading withinOfficeNode.nodeContext-NodeContext.isLoadingType- Indicates using for loading type.
-
-
Method Details
-
loadSpecification
public <I,F extends Enum<F>, PropertyList loadSpecificationGS extends GovernanceSource<I, F>> (Class<GS> governanceSourceClass) Description copied from interface:GovernanceLoader- Specified by:
loadSpecificationin interfaceGovernanceLoader- Type Parameters:
I- Extension interface type.F- Flow key type.GS-GovernanceSourcetype.- Parameters:
governanceSourceClass- Class of theGovernanceSource.- Returns:
PropertyListof theGovernanceSourcePropertyinstances of theGovernanceSourceSpecificationornullif issue, which is reported to theCompilerIssues.
-
loadGovernanceType
public <I,F extends Enum<F>, GovernanceType<I,GS extends GovernanceSource<I, F>> F> loadGovernanceType(Class<GS> governanceSourceClass, PropertyList properties) Description copied from interface:GovernanceLoaderLoads and returns theGovernanceTypefrom theGovernanceSourceclass.- Specified by:
loadGovernanceTypein interfaceGovernanceLoader- Type Parameters:
I- Extension interface type.F- Flow key type.GS-GovernanceSourcetype.- Parameters:
governanceSourceClass- Class of theGovernanceSource.properties-PropertyListcontaining the properties to source theGovernanceType.- Returns:
GovernanceTypeornullif issues, which is reported to theCompilerIssues.
-
loadGovernanceType
public <I,F extends Enum<F>, GovernanceType<I,GS extends GovernanceSource<I, F>> F> loadGovernanceType(GS governanceSource, PropertyList properties) Description copied from interface:GovernanceLoaderLoads and returns theGovernanceTypefrom theGovernanceSource.- Specified by:
loadGovernanceTypein interfaceGovernanceLoader- Type Parameters:
I- Extension interface type.F- Flow key type.GS-GovernanceSourcetype.- Parameters:
governanceSource-GovernanceSource.properties-PropertyListcontaining the properties to source theGovernanceType.- Returns:
GovernanceTypeornullif issues, which is reported to theCompilerIssues.
-
addIssue
Description copied from interface:IssueTargetAdds the issue.- Specified by:
addIssuein interfaceIssueTarget- Parameters:
issueDescription- Description of the issue.
-
addIssue
Description copied from interface:IssueTargetAdds the issue.- Specified by:
addIssuein interfaceIssueTarget- Parameters:
issueDescription- Description of the issue.cause- Cause of the issue.
-