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>
GovernanceBuilder
implementation.- 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 long
getAsynchronousFlowTimeout()
Obtains the timeout for anyAsynchronousFlow
instigated.java.lang.Class<E>
getExtensionType()
Obtains the extension interface type forManagedObject
to provide to enableGovernance
.GovernanceFactory<? super E,F>
getGovernanceFactory()
Obtains theGovernanceFactory
.java.lang.String
getGovernanceName()
Obtains the name of theGovernance
.void
setAsynchronousFlowTimeout(long timeout)
Specifies the timeout to forAsynchronousFlow
instances 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:GovernanceBuilder
Specifies the timeout to forAsynchronousFlow
instances for thisGovernance
.- Specified by:
setAsynchronousFlowTimeout
in interfaceGovernanceBuilder<E>
- Parameters:
timeout
- Timeout.
-
getGovernanceName
public java.lang.String getGovernanceName()
Description copied from interface:GovernanceConfiguration
Obtains the name of theGovernance
.- Specified by:
getGovernanceName
in interfaceGovernanceConfiguration<E,F extends java.lang.Enum<F>>
- Returns:
- Name of the
Governance
.
-
getGovernanceFactory
public GovernanceFactory<? super E,F> getGovernanceFactory()
Description copied from interface:GovernanceConfiguration
Obtains theGovernanceFactory
.- Specified by:
getGovernanceFactory
in interfaceGovernanceConfiguration<E,F extends java.lang.Enum<F>>
- Returns:
GovernanceFactory
.
-
getExtensionType
public java.lang.Class<E> getExtensionType()
Description copied from interface:GovernanceConfiguration
Obtains the extension interface type forManagedObject
to provide to enableGovernance
.- Specified by:
getExtensionType
in interfaceGovernanceConfiguration<E,F extends java.lang.Enum<F>>
- Returns:
- Extension interface type for
ManagedObject
to provide to enableGovernance
.
-
getAsynchronousFlowTimeout
public long getAsynchronousFlowTimeout()
Description copied from interface:GovernanceConfiguration
Obtains the timeout for anyAsynchronousFlow
instigated.- Specified by:
getAsynchronousFlowTimeout
in interfaceGovernanceConfiguration<E,F extends java.lang.Enum<F>>
- Returns:
- Timeout for any
AsynchronousFlow
instigated.
-
-