Class RawManagingOfficeMetaData<F extends java.lang.Enum<F>>
- java.lang.Object
-
- net.officefloor.frame.impl.construct.managedobjectsource.RawManagingOfficeMetaData<F>
-
public class RawManagingOfficeMetaData<F extends java.lang.Enum<F>> extends java.lang.Object
RawManagingOfficeMetaData
implementation.- Author:
- Daniel Sagenschneider
-
-
Constructor Summary
Constructors Constructor Description RawManagingOfficeMetaData(java.lang.String managingOfficeName, java.lang.String recycleFunctionName, InputManagedObjectConfiguration<?> inputConfiguration, ManagedObjectFlowMetaData<F>[] flowMetaDatas, ManagedObjectExecutionMetaData[] executionMetaDatas, ManagingOfficeConfiguration<F> managingOfficeConfiguration, ManagedFunctionInvocation[] startupInvocations)
Initialise.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description InputManagedObjectConfiguration<?>
getInputManagedObjectConfiguration()
Indicates if theManagedObjectSource
requires instigatingFlow
instances.ManagedObjectExecuteManagerFactory<F>
getManagedObjectExecuteManagerFactory()
Obtains theManagedObjectExecuteManagerFactory
for theManagedObjectSource
.java.lang.String
getManagingOfficeName()
Obtains the name for theOffice
managing theManagedObject
.RawManagedObjectMetaData<?,F>
getRawManagedObjectMetaData()
Obtains theInputManagedObjectConfiguration
configuring the bind of theManagedObject
within theProcessState
of theOffice
.boolean
isRequireFlows()
static boolean
isRequireFlows(ManagedObjectFlowMetaData<?>[] flowMetaData)
Determines if theManagedObjectSource
instigatesFlow
instances.void
manageByOffice(OfficeMetaData officeMetaData, RawBoundManagedObjectMetaData[] processBoundManagedObjectMetaData, ManagedObjectAdministrationMetaDataFactory moAdminFactory, java.util.concurrent.ThreadFactory[] defaultExecutionStrategy, java.util.Map<java.lang.String,java.util.concurrent.ThreadFactory[]> executionStrategies, AssetManagerRegistry assetManagerRegistry, long defaultAsynchronousFlowTimeout, OfficeFloorIssues issues)
void
manageManagedObject(RawBoundManagedObjectInstanceMetaData<?> boundInstanceMetaData, AssetManagerRegistry assetManagerRegistry, long defaultAsynchronousFlowTimeout)
Adds aManagedObjectMetaData
to be managed by the managingOffice
.void
setRawManagedObjectMetaData(RawManagedObjectMetaData<?,F> rawManagedObjectMetaData)
Specifies theRawManagedObjectMetaData
.
-
-
-
Constructor Detail
-
RawManagingOfficeMetaData
public RawManagingOfficeMetaData(java.lang.String managingOfficeName, java.lang.String recycleFunctionName, InputManagedObjectConfiguration<?> inputConfiguration, ManagedObjectFlowMetaData<F>[] flowMetaDatas, ManagedObjectExecutionMetaData[] executionMetaDatas, ManagingOfficeConfiguration<F> managingOfficeConfiguration, ManagedFunctionInvocation[] startupInvocations)
Initialise.- Parameters:
managingOfficeName
- Name of the managingOffice
.recycleFunctionName
- Name of theManagedFunction
to recycle theManagedObject
.inputConfiguration
-InputManagedObjectConfiguration
to configure binding the inputManagedObject
to theProcessState
.flowMetaDatas
-ManagedObjectFlowMetaData
instances for theManagedObjectSource
.executionMetaDatas
-ManagedObjectExecutionMetaData
instances for theManagedObjectSource
.managingOfficeConfiguration
-ManagingOfficeConfiguration
.startupInvocations
- Start upManagedFunctionInvocation
instances.
-
-
Method Detail
-
isRequireFlows
public static boolean isRequireFlows(ManagedObjectFlowMetaData<?>[] flowMetaData)
Determines if theManagedObjectSource
instigatesFlow
instances.- Parameters:
flowMetaData
-ManagedObjectFlowMetaData
instances of theManagedObjectSource
.- Returns:
true
ifManagedObjectSource
instigatesFlow
instances.
-
setRawManagedObjectMetaData
public void setRawManagedObjectMetaData(RawManagedObjectMetaData<?,F> rawManagedObjectMetaData)
Specifies theRawManagedObjectMetaData
.- Parameters:
rawManagedObjectMetaData
-RawManagedObjectMetaData
.
-
manageManagedObject
public void manageManagedObject(RawBoundManagedObjectInstanceMetaData<?> boundInstanceMetaData, AssetManagerRegistry assetManagerRegistry, long defaultAsynchronousFlowTimeout)
Adds aManagedObjectMetaData
to be managed by the managingOffice
.- Parameters:
boundInstanceMetaData
-RawBoundManagedObjectInstanceMetaData
for theManagedObjectMetaData
.assetManagerRegistry
-AssetManagerRegistry
.defaultAsynchronousFlowTimeout
- DefaultAsynchronousFlow
timeout.
-
getManagingOfficeName
public java.lang.String getManagingOfficeName()
Obtains the name for theOffice
managing theManagedObject
.- Returns:
- Name for the
Office
managing theManagedObject
.
-
getInputManagedObjectConfiguration
public InputManagedObjectConfiguration<?> getInputManagedObjectConfiguration()
Indicates if the
ManagedObjectSource
requires instigatingFlow
instances.If
true
it means theManagedObjectSource
must be bound to theProcessState
of theOffice
.- Returns:
true
if theManagedObjectSource
requires instigatingFlow
instances.
-
getRawManagedObjectMetaData
public RawManagedObjectMetaData<?,F> getRawManagedObjectMetaData()
Obtains the
InputManagedObjectConfiguration
configuring the bind of theManagedObject
within theProcessState
of theOffice
.Should the
ManagedObjectSource
instigate aFlow
, aManagedObject
from theManagedObjectSource
is to be made available to theProcessState
. Whether theOffice
wants to make use of theManagedObject
is its choice but is available to do so.- Returns:
InputManagedObjectConfiguration
configuring the bind of theManagedObject
within theProcessState
of theOffice
.
-
isRequireFlows
public boolean isRequireFlows()
- Returns:
RawManagedObjectMetaData
for theManagedObject
to be managed by theOffice
.
-
manageByOffice
public void manageByOffice(OfficeMetaData officeMetaData, RawBoundManagedObjectMetaData[] processBoundManagedObjectMetaData, ManagedObjectAdministrationMetaDataFactory moAdminFactory, java.util.concurrent.ThreadFactory[] defaultExecutionStrategy, java.util.Map<java.lang.String,java.util.concurrent.ThreadFactory[]> executionStrategies, AssetManagerRegistry assetManagerRegistry, long defaultAsynchronousFlowTimeout, OfficeFloorIssues issues)
- Parameters:
officeMetaData
-OfficeMetaData
.processBoundManagedObjectMetaData
-RawBoundManagedObjectMetaData
of theProcessState
boundManagedObject
instances of the managingOffice
.moAdminFactory
-ManagedObjectAdministrationMetaDataFactory
.defaultExecutionStrategy
- DefaultExecutionStrategy
.executionStrategies
-ExecutionStrategy
instances by their name.assetManagerRegistry
-AssetManagerRegistry
.defaultAsynchronousFlowTimeout
- DefaultAsynchronousFlow
timeout.issues
-OfficeFloorIssues
.
-
getManagedObjectExecuteManagerFactory
public ManagedObjectExecuteManagerFactory<F> getManagedObjectExecuteManagerFactory()
Obtains theManagedObjectExecuteManagerFactory
for theManagedObjectSource
.- Returns:
ManagedObjectExecuteManagerFactory
for theManagedObjectSource
.
-
-