Package net.officefloor.frame.test
Class ReflectiveAdministrationBuilder
- java.lang.Object
-
- net.officefloor.frame.test.ReflectiveAdministrationBuilder
-
public class ReflectiveAdministrationBuilder extends java.lang.ObjectReflectiveAdministrationBuilder.- Author:
- Daniel Sagenschneider
-
-
Constructor Summary
Constructors Constructor Description ReflectiveAdministrationBuilder(java.lang.Class<C> clazz, C object, java.lang.String methodName, boolean isPreNotPost, ManagedFunctionBuilder<?,?> managedFunctionBuilder, ConstructTestSupport constructTestSupport)Instantiate.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadministerManagedObject(java.lang.String managedObjectName)Builds theAdministrationof theManagedObject.voidbuildAdministrationContext()Builds theAdministrationContextas parameter.voidbuildAsynchronousFlow()BuildsAsynchronousFlow.voidbuildFlow(java.lang.String functionName, java.lang.Class<?> argumentType, boolean isSpawnThreadState)Builds theFlow.voidbuildGovernance(java.lang.String governanceName)Builds theGovernance.AdministrationBuilder<Indexed,Indexed>getBuilder()Obtains theAdministrationBuilder.
-
-
-
Constructor Detail
-
ReflectiveAdministrationBuilder
public ReflectiveAdministrationBuilder(java.lang.Class<C> clazz, C object, java.lang.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 Detail
-
getBuilder
public AdministrationBuilder<Indexed,Indexed> getBuilder()
Obtains theAdministrationBuilder.- Returns:
AdministrationBuilder.
-
administerManagedObject
public void administerManagedObject(java.lang.String managedObjectName)
Builds theAdministrationof theManagedObject.- Parameters:
managedObjectName- Name of theManagedObjectto administer.
-
buildAdministrationContext
public void buildAdministrationContext()
Builds theAdministrationContextas parameter.
-
buildFlow
public void buildFlow(java.lang.String functionName, java.lang.Class<?> argumentType, boolean isSpawnThreadState)Builds theFlow.- Parameters:
functionName-ManagedFunctionname.argumentType- Type of argument passed to theFlow.isSpawnThreadState- Indicates whether to spawn aThreadState.
-
buildGovernance
public void buildGovernance(java.lang.String governanceName)
Builds theGovernance.- Parameters:
governanceName- Name of theGovernance.
-
buildAsynchronousFlow
public void buildAsynchronousFlow()
BuildsAsynchronousFlow.
-
-