Package net.officefloor.frame.test
Class ReflectiveAdministrationBuilder
- java.lang.Object
-
- net.officefloor.frame.test.ReflectiveAdministrationBuilder
-
public class ReflectiveAdministrationBuilder extends java.lang.Object
ReflectiveAdministrationBuilder
.- 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 void
administerManagedObject(java.lang.String managedObjectName)
Builds theAdministration
of theManagedObject
.void
buildAdministrationContext()
Builds theAdministrationContext
as parameter.void
buildAsynchronousFlow()
BuildsAsynchronousFlow
.void
buildFlow(java.lang.String functionName, java.lang.Class<?> argumentType, boolean isSpawnThreadState)
Builds theFlow
.void
buildGovernance(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
-Administration
Class
type.- Parameters:
clazz
-Class
to determine theMethod
instances for theAdministration
instances.object
- OptionalObject
for non-static methods.methodName
- Name of theMethod
to 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 theAdministration
of theManagedObject
.- Parameters:
managedObjectName
- Name of theManagedObject
to administer.
-
buildAdministrationContext
public void buildAdministrationContext()
Builds theAdministrationContext
as parameter.
-
buildFlow
public void buildFlow(java.lang.String functionName, java.lang.Class<?> argumentType, boolean isSpawnThreadState)
Builds theFlow
.- Parameters:
functionName
-ManagedFunction
name.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
.
-
-