Package net.officefloor.frame.test
Class ReflectiveGovernanceBuilder
java.lang.Object
net.officefloor.frame.test.ReflectiveGovernanceBuilder
- All Implemented Interfaces:
GovernanceFactory<Object,Indexed>
public class ReflectiveGovernanceBuilder
extends Object
implements GovernanceFactory<Object,Indexed>
Reflective
GovernanceBuilder.- Author:
- Daniel Sagenschneider
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionReflectiveGovernanceBuilder(Class<C> clazz, C object, String governanceName, OfficeBuilder officeBuilder, ConstructTestSupport constructTestSupport) Instantiate. -
Method Summary
Modifier and TypeMethodDescriptionCreates theGovernance.Constructs the disregardGovernanceActivity.Constructs the enforceGovernanceActivity.Obtains theGovernanceBuilder.Constructs the registerManagedObjectGovernanceActivity.
-
Constructor Details
-
ReflectiveGovernanceBuilder
public ReflectiveGovernanceBuilder(Class<C> clazz, C object, String governanceName, OfficeBuilder officeBuilder, ConstructTestSupport constructTestSupport) Instantiate.- Type Parameters:
C-GovernanceClasstype.- Parameters:
clazz-Class.object- Object should the method not bestatic. May benullifstaticMethodof theClass.governanceName- Name of theGovernance.officeBuilder-OfficeBuilder.constructTestSupport-ConstructTestSupport.
-
-
Method Details
-
getBuilder
Obtains theGovernanceBuilder.- Returns:
GovernanceBuilder.
-
register
Constructs the registerManagedObjectGovernanceActivity.- Parameters:
methodName- Name ofMethodto register theManagedObject.- Returns:
ReflectiveGovernanceBuilder.ReflectiveGovernanceActivityBuilder.
-
enforce
Constructs the enforceGovernanceActivity.- Parameters:
methodName- Name ofMethodfor enforcing theGovernance.- Returns:
ReflectiveGovernanceBuilder.ReflectiveGovernanceActivityBuilder.
-
disregard
Constructs the disregardGovernanceActivity.- Parameters:
methodName- Name ofMethodfor disregarding theGovernance.- Returns:
ReflectiveGovernanceBuilder.ReflectiveGovernanceActivityBuilder.
-
createGovernance
Description copied from interface:GovernanceFactoryCreates theGovernance.- Specified by:
createGovernancein interfaceGovernanceFactory<Object,Indexed> - Returns:
Governance.- Throws:
Throwable- If fails to create theGovernance.
-