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>
Class
GovernanceFactory
.- 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
-Method
for governing theManagedObject
.enforceMethod
-Method
to enforce theGovernance
.disregardMethod
-Method
to disregard theGovernance
. May benull
if no functionality required for disregarding.
-
-
Method Detail
-
createGovernance
public Governance<java.lang.Object,Indexed> createGovernance() throws java.lang.Throwable
Description copied from interface:GovernanceFactory
Creates theGovernance
.- Specified by:
createGovernance
in interfaceGovernanceFactory<java.lang.Object,Indexed>
- Returns:
Governance
.- Throws:
java.lang.Throwable
- If fails to create theGovernance
.
-
-