Interface Governance<E,F extends java.lang.Enum<F>>
-
- All Known Implementing Classes:
ClassGovernance
,SpringDataTransactionGovernance
public interface Governance<E,F extends java.lang.Enum<F>>
Provides
Governance
over theManagedObject
instances.The extension interface of the
ManagedObject
is used to provide theGovernance
.- Author:
- Daniel Sagenschneider
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
disregardGovernance(GovernanceContext<F> context)
DisregardGovernance
of theManagedObject
instances.void
enforceGovernance(GovernanceContext<F> context)
void
governManagedObject(E managedObjectExtension, GovernanceContext<F> context)
Registers theManagedObject
forGovernance
.
-
-
-
Method Detail
-
governManagedObject
void governManagedObject(E managedObjectExtension, GovernanceContext<F> context) throws java.lang.Throwable
Registers theManagedObject
forGovernance
.- Parameters:
managedObjectExtension
- Extension of theManagedObject
to enableGovernance
.context
-GovernanceContext
.- Throws:
java.lang.Throwable
- If fails to govern theManagedObject
.
-
enforceGovernance
void enforceGovernance(GovernanceContext<F> context) throws java.lang.Throwable
- Parameters:
context
-GovernanceContext
.- Throws:
java.lang.Throwable
- If fails to enforceGovernance
.
-
disregardGovernance
void disregardGovernance(GovernanceContext<F> context) throws java.lang.Throwable
DisregardGovernance
of theManagedObject
instances.- Parameters:
context
-GovernanceContext
.- Throws:
java.lang.Throwable
- If fails to disregardGovernance
.
-
-