Class ManagingOfficeBuilderImpl<F extends java.lang.Enum<F>>
- java.lang.Object
-
- net.officefloor.frame.impl.construct.managedobjectsource.ManagingOfficeBuilderImpl<F>
-
- All Implemented Interfaces:
ManagingOfficeBuilder<F>
,ManagingOfficeConfiguration<F>
public class ManagingOfficeBuilderImpl<F extends java.lang.Enum<F>> extends java.lang.Object implements ManagingOfficeBuilder<F>, ManagingOfficeConfiguration<F>
ManagingOfficeBuilder
implementation.- Author:
- Daniel Sagenschneider
-
-
Constructor Summary
Constructors Constructor Description ManagingOfficeBuilderImpl(java.lang.String officeName)
Initiate.
-
Method Summary
-
-
-
Constructor Detail
-
ManagingOfficeBuilderImpl
public ManagingOfficeBuilderImpl(java.lang.String officeName)
Initiate.- Parameters:
officeName
- Name of theOffice
managing theManagedObject
.
-
-
Method Detail
-
setInputManagedObjectName
public ThreadDependencyMappingBuilder setInputManagedObjectName(java.lang.String inputManagedObjectName)
Description copied from interface:ManagingOfficeBuilder
- Specified by:
setInputManagedObjectName
in interfaceManagingOfficeBuilder<F extends java.lang.Enum<F>>
- Parameters:
inputManagedObjectName
- Name to bind the inputManagedObject
within theProcessState
of theOffice
.- Returns:
ThreadDependencyMappingBuilder
to map the dependencies of theManagedObject
and possibleManagedObjectFunctionDependency
instances.
-
mapFunctionDependency
public void mapFunctionDependency(java.lang.String functionObjectName, java.lang.String scopedManagedObjectName)
Description copied from interface:ManagingOfficeBuilder
Specifies theManagedObject
for theManagedObjectFunctionDependency
.- Specified by:
mapFunctionDependency
in interfaceManagingOfficeBuilder<F extends java.lang.Enum<F>>
- Parameters:
functionObjectName
- Name of theManagedObjectFunctionDependency
.scopedManagedObjectName
- Name of theManagedObject
.
-
linkFlow
public void linkFlow(F key, java.lang.String functionName)
Description copied from interface:ManagingOfficeBuilder
- Specified by:
linkFlow
in interfaceManagingOfficeBuilder<F extends java.lang.Enum<F>>
- Parameters:
key
- Key identifying theFlow
instigated by theManagedObjectSource
.functionName
- Name of theManagedFunction
.
-
linkFlow
public void linkFlow(int flowIndex, java.lang.String functionName)
Description copied from interface:ManagingOfficeBuilder
- Specified by:
linkFlow
in interfaceManagingOfficeBuilder<F extends java.lang.Enum<F>>
- Parameters:
flowIndex
- Index identifying theFlow
instigated by theManagedObjectSource
.functionName
- Name of theManagedFunction
.
-
linkExecutionStrategy
public void linkExecutionStrategy(int strategyIndex, java.lang.String executionStrategyName)
Description copied from interface:ManagingOfficeBuilder
Links strategy to itsExecutionStrategy
.- Specified by:
linkExecutionStrategy
in interfaceManagingOfficeBuilder<F extends java.lang.Enum<F>>
- Parameters:
strategyIndex
- Index identifying the dependentExecutionStrategy
by theManagedObjectSource
.executionStrategyName
- Name of theExecutionStrategy
.
-
getOfficeName
public java.lang.String getOfficeName()
Description copied from interface:ManagingOfficeConfiguration
Obtains the name of theOffice
managing thisManagedObjectSource
.- Specified by:
getOfficeName
in interfaceManagingOfficeConfiguration<F extends java.lang.Enum<F>>
- Returns:
- Name of the
Office
managing thisManagedObjectSource
.
-
getInputManagedObjectConfiguration
public InputManagedObjectConfiguration<?> getInputManagedObjectConfiguration()
Description copied from interface:ManagingOfficeConfiguration
- Specified by:
getInputManagedObjectConfiguration
in interfaceManagingOfficeConfiguration<F extends java.lang.Enum<F>>
- Returns:
InputManagedObjectConfiguration
to bind the inputManagedObject
to theProcessState
.
-
getBuilder
public ManagingOfficeBuilder<F> getBuilder()
Description copied from interface:ManagingOfficeConfiguration
Obtains the
ManagingOfficeBuilder
for thisManagedObjectSource
.This is to enable the
ManagedObjectSource
to provide additional configuration for itself.- Specified by:
getBuilder
in interfaceManagingOfficeConfiguration<F extends java.lang.Enum<F>>
- Returns:
ManagingOfficeBuilder
.
-
getFunctionDependencyConfiguration
public ManagedObjectFunctionDependencyConfiguration[] getFunctionDependencyConfiguration()
Description copied from interface:ManagingOfficeConfiguration
Obtains theManagedObjectFunctionDependencyConfiguration
for theManagedObjectSource
.- Specified by:
getFunctionDependencyConfiguration
in interfaceManagingOfficeConfiguration<F extends java.lang.Enum<F>>
- Returns:
ManagedObjectFunctionDependencyConfiguration
for theManagedObjectSource
.
-
getFlowConfiguration
public ManagedObjectFlowConfiguration<F>[] getFlowConfiguration()
Description copied from interface:ManagingOfficeConfiguration
Obtains theManagedObjectFlowConfiguration
for theManagedObjectSource
.- Specified by:
getFlowConfiguration
in interfaceManagingOfficeConfiguration<F extends java.lang.Enum<F>>
- Returns:
ManagedObjectFlowConfiguration
for theManagedObjectSource
.
-
getExecutionConfiguration
public ManagedObjectExecutionConfiguration[] getExecutionConfiguration()
Description copied from interface:ManagingOfficeConfiguration
Obtains theManagedObjectExecutionConfiguration
for theManagedObjectSource
.- Specified by:
getExecutionConfiguration
in interfaceManagingOfficeConfiguration<F extends java.lang.Enum<F>>
- Returns:
ManagedObjectExecutionConfiguration
for theManagedObjectSource
.
-
-