Class GovernanceContainerImpl<E,F extends java.lang.Enum<F>>
- java.lang.Object
-
- net.officefloor.frame.impl.execute.governance.GovernanceContainerImpl<E,F>
-
- All Implemented Interfaces:
GovernanceContainer<E>
public class GovernanceContainerImpl<E,F extends java.lang.Enum<F>> extends java.lang.Object implements GovernanceContainer<E>
GovernanceContainer
implementation.- Author:
- Daniel Sagenschneider
-
-
Constructor Summary
Constructors Constructor Description GovernanceContainerImpl(GovernanceMetaData<E,F> metaData, ThreadState threadState, int governanceIndex)
Initiate.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BlockState
activateGovernance()
Activates theGovernance
.FunctionState
deactivateGovernance()
Deactivates theGovernance
.BlockState
disregardGovernance()
Disregards theGovernance
.BlockState
enforceGovernance()
Enforces theGovernance
.boolean
isGovernanceActive()
Indicates ifGovernance
within thisGovernanceContainer
is active.<O extends java.lang.Enum<O>>
RegisteredGovernanceregisterManagedObject(E managedObjectExtension, ManagedObjectContainer managedobjectContainer, ManagedObjectMetaData<O> managedObjectMetaData, ManagedFunctionContainer managedFunctionContainer)
Registers theManagedObject
forGovernance
.
-
-
-
Constructor Detail
-
GovernanceContainerImpl
public GovernanceContainerImpl(GovernanceMetaData<E,F> metaData, ThreadState threadState, int governanceIndex)
Initiate.- Parameters:
metaData
-GovernanceMetaData
.threadState
-ThreadState
.governanceIndex
- Index of theGovernance
within theThreadState
.
-
-
Method Detail
-
isGovernanceActive
public boolean isGovernanceActive()
Description copied from interface:GovernanceContainer
Indicates ifGovernance
within thisGovernanceContainer
is active.- Specified by:
isGovernanceActive
in interfaceGovernanceContainer<E>
- Returns:
true
if theGovernance
is active.
-
registerManagedObject
public <O extends java.lang.Enum<O>> RegisteredGovernance registerManagedObject(E managedObjectExtension, ManagedObjectContainer managedobjectContainer, ManagedObjectMetaData<O> managedObjectMetaData, ManagedFunctionContainer managedFunctionContainer)
Description copied from interface:GovernanceContainer
Registers theManagedObject
forGovernance
.- Specified by:
registerManagedObject
in interfaceGovernanceContainer<E>
- Type Parameters:
O
- Object type.- Parameters:
managedObjectExtension
- Extension of theManagedObject
to enableGovernance
.managedobjectContainer
-ManagedObjectContainer
for theManagedObject
.managedObjectMetaData
-ManagedObjectMetaData
for theManagedObject
.managedFunctionContainer
-ManagedFunctionContainer
to enable access toManagedFunctionContainer
bound dependencies.- Returns:
RegisteredGovernance
.
-
activateGovernance
public BlockState activateGovernance()
Description copied from interface:GovernanceContainer
- Specified by:
activateGovernance
in interfaceGovernanceContainer<E>
- Returns:
BlockState
to activate theGovernance
.
-
enforceGovernance
public BlockState enforceGovernance()
Description copied from interface:GovernanceContainer
Enforces theGovernance
.- Specified by:
enforceGovernance
in interfaceGovernanceContainer<E>
- Returns:
BlockState
to enforce theGovernance
.
-
disregardGovernance
public BlockState disregardGovernance()
Description copied from interface:GovernanceContainer
Disregards theGovernance
.- Specified by:
disregardGovernance
in interfaceGovernanceContainer<E>
- Returns:
BlockState
to disregard theGovernance
.
-
deactivateGovernance
public FunctionState deactivateGovernance()
Description copied from interface:GovernanceContainer
- Specified by:
deactivateGovernance
in interfaceGovernanceContainer<E>
- Returns:
- Deactivate the
Governance
.
-
-