Interface GovernanceContainer<E>
-
- All Known Implementing Classes:
GovernanceContainerImpl
public interface GovernanceContainer<E>
Container managing the
Governance
.Governance
may only reside on the singleThreadState
requiring theGovernance
.- Author:
- Daniel Sagenschneider
-
-
Method Summary
All Methods Instance Methods Abstract 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
.
-
-
-
Method Detail
-
isGovernanceActive
boolean isGovernanceActive()
Indicates ifGovernance
within thisGovernanceContainer
is active.- Returns:
true
if theGovernance
is active.
-
registerManagedObject
<O extends java.lang.Enum<O>> RegisteredGovernance registerManagedObject(E managedObjectExtension, ManagedObjectContainer managedObjectContainer, ManagedObjectMetaData<O> managedObjectMetaData, ManagedFunctionContainer managedFunctionContainer)
Registers theManagedObject
forGovernance
.- 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
BlockState activateGovernance()
- Returns:
BlockState
to activate theGovernance
.
-
enforceGovernance
BlockState enforceGovernance()
Enforces theGovernance
.- Returns:
BlockState
to enforce theGovernance
.
-
disregardGovernance
BlockState disregardGovernance()
Disregards theGovernance
.- Returns:
BlockState
to disregard theGovernance
.
-
deactivateGovernance
FunctionState deactivateGovernance()
- Returns:
- Deactivate the
Governance
.
-
-