Class ClassGovernanceFactory
- java.lang.Object
-
- net.officefloor.plugin.governance.clazz.ClassGovernanceFactory
-
- All Implemented Interfaces:
GovernanceFactory<java.lang.Object,Indexed>
public class ClassGovernanceFactory extends java.lang.Object implements GovernanceFactory<java.lang.Object,Indexed>
ClassGovernanceFactory.- Author:
- Daniel Sagenschneider
-
-
Constructor Summary
Constructors Constructor Description ClassGovernanceFactory(java.lang.Class<?> clazz, java.lang.reflect.Method governMethod, java.lang.reflect.Method enforceMethod, java.lang.reflect.Method disregardMethod)Initiate.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Governance<java.lang.Object,Indexed>createGovernance()Creates theGovernance.
-
-
-
Constructor Detail
-
ClassGovernanceFactory
public ClassGovernanceFactory(java.lang.Class<?> clazz, java.lang.reflect.Method governMethod, java.lang.reflect.Method enforceMethod, java.lang.reflect.Method disregardMethod)Initiate.- Parameters:
clazz-Class.governMethod-Methodfor governing theManagedObject.enforceMethod-Methodto enforce theGovernance.disregardMethod-Methodto disregard theGovernance. May benullif no functionality required for disregarding.
-
-
Method Detail
-
createGovernance
public Governance<java.lang.Object,Indexed> createGovernance() throws java.lang.Throwable
Description copied from interface:GovernanceFactoryCreates theGovernance.- Specified by:
createGovernancein interfaceGovernanceFactory<java.lang.Object,Indexed>- Returns:
Governance.- Throws:
java.lang.Throwable- If fails to create theGovernance.
-
-