Package net.officefloor.frame.test
Class ReflectiveAdministrationBuilder
java.lang.Object
net.officefloor.frame.test.ReflectiveAdministrationBuilder
Reflective
AdministrationBuilder.- Author:
- Daniel Sagenschneider
-
Constructor Summary
ConstructorsConstructorDescriptionReflectiveAdministrationBuilder(Class<C> clazz, C object, String methodName, boolean isPreNotPost, ManagedFunctionBuilder<?, ?> managedFunctionBuilder, ConstructTestSupport constructTestSupport) Instantiate. -
Method Summary
Modifier and TypeMethodDescriptionvoidadministerManagedObject(String managedObjectName) Builds theAdministrationof theManagedObject.voidBuilds theAdministrationContextas parameter.voidBuildsAsynchronousFlow.voidBuilds theFlow.voidbuildGovernance(String governanceName) Builds theGovernance.Obtains theAdministrationBuilder.
-
Constructor Details
-
ReflectiveAdministrationBuilder
public ReflectiveAdministrationBuilder(Class<C> clazz, C object, String methodName, boolean isPreNotPost, ManagedFunctionBuilder<?, ?> managedFunctionBuilder, ConstructTestSupport constructTestSupport) Instantiate.- Type Parameters:
C-AdministrationClasstype.- Parameters:
clazz-Classto determine theMethodinstances for theAdministrationinstances.object- OptionalObjectfor non-static methods.methodName- Name of theMethodto invoke.isPreNotPost- Indicates if pre-administration (otherwise post-administration).managedFunctionBuilder-ManagedFunctionBuilder.constructTestSupport-ConstructTestSupport.
-
-
Method Details
-
getBuilder
Obtains theAdministrationBuilder.- Returns:
AdministrationBuilder.
-
administerManagedObject
Builds theAdministrationof theManagedObject.- Parameters:
managedObjectName- Name of theManagedObjectto administer.
-
buildAdministrationContext
public void buildAdministrationContext()Builds theAdministrationContextas parameter. -
buildFlow
Builds theFlow.- Parameters:
functionName-ManagedFunctionname.argumentType- Type of argument passed to theFlow.isSpawnThreadState- Indicates whether to spawn aThreadState.
-
buildGovernance
Builds theGovernance.- Parameters:
governanceName- Name of theGovernance.
-
buildAsynchronousFlow
public void buildAsynchronousFlow()BuildsAsynchronousFlow.
-