Class AbstractGovernanceSource<I,F extends Enum<F>>
java.lang.Object
net.officefloor.compile.spi.governance.source.impl.AbstractGovernanceSource<I,F>
- All Implemented Interfaces:
GovernanceSource<I,F>
- Direct Known Subclasses:
ClassGovernanceSource,SpringDataTransactionGovernanceSource,SpringDataTransactionGovernanceSource
public abstract class AbstractGovernanceSource<I,F extends Enum<F>>
extends Object
implements GovernanceSource<I,F>
Abstract
GovernanceSource.- Author:
- Daniel Sagenschneider
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceProvides the ability to label theFlow.static interfaceAbstractGovernanceSource.MetaDataContext<I,F extends Enum<F>> Context for theGovernanceSource.init(GovernanceSourceContext).static interfaceContext for thegetSpecification(). -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionObtains the specification for this.init(GovernanceSourceContext context) Initialises theGovernanceSource.protected abstract voidOverridden to load meta-data.protected abstract voidOverridden to load specification.
-
Constructor Details
-
AbstractGovernanceSource
public AbstractGovernanceSource()
-
-
Method Details
-
getSpecification
Description copied from interface:GovernanceSourceObtains the specification for this.
This will be called before any other methods, therefore this method must be able to return the specification immediately after a default constructor instantiation.
- Specified by:
getSpecificationin interfaceGovernanceSource<I,F extends Enum<F>> - Returns:
- Specification of this.
-
loadSpecification
Overridden to load specification.- Parameters:
context- Specifications.
-
init
Description copied from interface:GovernanceSourceInitialises theGovernanceSource.- Specified by:
initin interfaceGovernanceSource<I,F extends Enum<F>> - Parameters:
context-GovernanceSourceContextto initialise this instance of theGovernanceSource.- Returns:
- Meta-data to describe this.
- Throws:
Exception- Should theGovernanceSourcefail to configure itself from the input properties.
-
loadMetaData
protected abstract void loadMetaData(AbstractGovernanceSource.MetaDataContext<I, F> context) throws ExceptionOverridden to load meta-data.- Parameters:
context- Meta-data.- Throws:
Exception- If fails to load the meta-data.
-