Class GovernanceBuilderImpl<E,F extends java.lang.Enum<F>>
- java.lang.Object
-
- net.officefloor.frame.impl.construct.function.AbstractFunctionBuilder<F>
-
- net.officefloor.frame.impl.construct.governance.GovernanceBuilderImpl<E,F>
-
- All Implemented Interfaces:
FunctionBuilder<F>,GovernanceBuilder<F>,FunctionConfiguration<F>,GovernanceConfiguration<E,F>
public class GovernanceBuilderImpl<E,F extends java.lang.Enum<F>> extends AbstractFunctionBuilder<F> implements GovernanceBuilder<F>, GovernanceConfiguration<E,F>
GovernanceBuilderimplementation.- Author:
- Daniel Sagenschneider
-
-
Constructor Summary
Constructors Constructor Description GovernanceBuilderImpl(java.lang.String governanceName, java.lang.Class<E> extensionType, GovernanceFactory<? super E,F> governanceFactory)Initiate.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetAsynchronousFlowTimeout()Obtains the timeout for anyAsynchronousFlowinstigated.java.lang.Class<E>getExtensionType()Obtains the extension interface type forManagedObjectto provide to enableGovernance.GovernanceFactory<? super E,F>getGovernanceFactory()Obtains theGovernanceFactory.java.lang.StringgetGovernanceName()Obtains the name of theGovernance.voidsetAsynchronousFlowTimeout(long timeout)Specifies the timeout to forAsynchronousFlowinstances for thisGovernance.-
Methods inherited from class net.officefloor.frame.impl.construct.function.AbstractFunctionBuilder
addEscalation, getEscalations, getFlowConfiguration, getResponsibleTeamName, linkFlow, linkFlow, setResponsibleTeam
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.officefloor.frame.api.build.FunctionBuilder
addEscalation, linkFlow, linkFlow, setResponsibleTeam
-
Methods inherited from interface net.officefloor.frame.internal.configuration.FunctionConfiguration
getEscalations, getFlowConfiguration, getResponsibleTeamName
-
-
-
-
Constructor Detail
-
GovernanceBuilderImpl
public GovernanceBuilderImpl(java.lang.String governanceName, java.lang.Class<E> extensionType, GovernanceFactory<? super E,F> governanceFactory)Initiate.- Parameters:
governanceName- Name of theGovernance.extensionType- Extension interface.governanceFactory-GovernanceFactory.
-
-
Method Detail
-
setAsynchronousFlowTimeout
public void setAsynchronousFlowTimeout(long timeout)
Description copied from interface:GovernanceBuilderSpecifies the timeout to forAsynchronousFlowinstances for thisGovernance.- Specified by:
setAsynchronousFlowTimeoutin interfaceGovernanceBuilder<E>- Parameters:
timeout- Timeout.
-
getGovernanceName
public java.lang.String getGovernanceName()
Description copied from interface:GovernanceConfigurationObtains the name of theGovernance.- Specified by:
getGovernanceNamein interfaceGovernanceConfiguration<E,F extends java.lang.Enum<F>>- Returns:
- Name of the
Governance.
-
getGovernanceFactory
public GovernanceFactory<? super E,F> getGovernanceFactory()
Description copied from interface:GovernanceConfigurationObtains theGovernanceFactory.- Specified by:
getGovernanceFactoryin interfaceGovernanceConfiguration<E,F extends java.lang.Enum<F>>- Returns:
GovernanceFactory.
-
getExtensionType
public java.lang.Class<E> getExtensionType()
Description copied from interface:GovernanceConfigurationObtains the extension interface type forManagedObjectto provide to enableGovernance.- Specified by:
getExtensionTypein interfaceGovernanceConfiguration<E,F extends java.lang.Enum<F>>- Returns:
- Extension interface type for
ManagedObjectto provide to enableGovernance.
-
getAsynchronousFlowTimeout
public long getAsynchronousFlowTimeout()
Description copied from interface:GovernanceConfigurationObtains the timeout for anyAsynchronousFlowinstigated.- Specified by:
getAsynchronousFlowTimeoutin interfaceGovernanceConfiguration<E,F extends java.lang.Enum<F>>- Returns:
- Timeout for any
AsynchronousFlowinstigated.
-
-