Class ClassGovernance
java.lang.Object
net.officefloor.plugin.governance.clazz.ClassGovernance
- All Implemented Interfaces:
Governance<Object,Indexed>
- Author:
- Daniel Sagenschneider
-
Constructor Summary
ConstructorsConstructorDescriptionClassGovernance(Object instance, Method governMethod, Method enforceMethod, Method disregardMethod) Initiate. -
Method Summary
Modifier and TypeMethodDescriptionvoiddisregardGovernance(GovernanceContext<Indexed> context) DisregardGovernanceof theManagedObjectinstances.voidenforceGovernance(GovernanceContext<Indexed> context) voidgovernManagedObject(Object extensionInterface, GovernanceContext<Indexed> context) Registers theManagedObjectforGovernance.
-
Constructor Details
-
ClassGovernance
public ClassGovernance(Object instance, Method governMethod, Method enforceMethod, Method disregardMethod) Initiate.- Parameters:
instance- Instance of theClass.governMethod-Methodfor governing theManagedObject.enforceMethod-Methodto enforce theGovernance.disregardMethod-Methodto disregard theGovernance. May benullif no functionality required for disregarding.
-
-
Method Details
-
governManagedObject
public void governManagedObject(Object extensionInterface, GovernanceContext<Indexed> context) throws Throwable Description copied from interface:GovernanceRegisters theManagedObjectforGovernance.- Specified by:
governManagedObjectin interfaceGovernance<Object,Indexed> - Parameters:
extensionInterface- Extension of theManagedObjectto enableGovernance.context-GovernanceContext.- Throws:
Throwable- If fails to govern theManagedObject.
-
enforceGovernance
Description copied from interface:Governance- Specified by:
enforceGovernancein interfaceGovernance<Object,Indexed> - Parameters:
context-GovernanceContext.- Throws:
Throwable- If fails to enforceGovernance.
-
disregardGovernance
Description copied from interface:GovernanceDisregardGovernanceof theManagedObjectinstances.- Specified by:
disregardGovernancein interfaceGovernance<Object,Indexed> - Parameters:
context-GovernanceContext.- Throws:
Throwable- If fails to disregardGovernance.
-