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.ObjectRawManagingOfficeMetaDataimplementation.- 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)Initialise.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description InputManagedObjectConfiguration<?>getInputManagedObjectConfiguration()Indicates if theManagedObjectSourcerequires instigatingFlowinstances.ManagedObjectExecuteManagerFactory<F>getManagedObjectExecuteManagerFactory()Obtains theManagedObjectExecuteManagerFactoryfor theManagedObjectSource.java.lang.StringgetManagingOfficeName()Obtains the name for theOfficemanaging theManagedObject.RawManagedObjectMetaData<?,F>getRawManagedObjectMetaData()Obtains theInputManagedObjectConfigurationconfiguring the bind of theManagedObjectwithin theProcessStateof theOffice.booleanisRequireFlows()static booleanisRequireFlows(ManagedObjectFlowMetaData<?>[] flowMetaData)Determines if theManagedObjectSourceinstigatesFlowinstances.voidmanageByOffice(OfficeMetaData officeMetaData, RawBoundManagedObjectMetaData[] processBoundManagedObjectMetaData, ManagedObjectAdministrationMetaDataFactory moAdminFactory, java.util.concurrent.ThreadFactory[] defaultExecutionStrategy, java.util.Map<java.lang.String,java.util.concurrent.ThreadFactory[]> executionStrategies, AssetManagerFactory assetManagerFactory, long defaultAsynchronousFlowTimeout, OfficeFloorIssues issues)voidmanageManagedObject(RawBoundManagedObjectInstanceMetaData<?> boundInstanceMetaData, AssetManagerFactory assetManagerFactory, long defaultAsynchronousFlowTimeout)Adds aManagedObjectMetaDatato be managed by the managingOffice.voidsetRawManagedObjectMetaData(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)Initialise.- Parameters:
managingOfficeName- Name of the managingOffice.recycleFunctionName- Name of theManagedFunctionto recycle theManagedObject.inputConfiguration-InputManagedObjectConfigurationto configure binding the inputManagedObjectto theProcessState.flowMetaDatas-ManagedObjectFlowMetaDatainstances for theManagedObjectSource.executionMetaDatas-ManagedObjectExecutionMetaDatainstances for theManagedObjectSource.managingOfficeConfiguration-ManagingOfficeConfiguration.
-
-
Method Detail
-
isRequireFlows
public static boolean isRequireFlows(ManagedObjectFlowMetaData<?>[] flowMetaData)
Determines if theManagedObjectSourceinstigatesFlowinstances.- Parameters:
flowMetaData-ManagedObjectFlowMetaDatainstances of theManagedObjectSource.- Returns:
trueifManagedObjectSourceinstigatesFlowinstances.
-
setRawManagedObjectMetaData
public void setRawManagedObjectMetaData(RawManagedObjectMetaData<?,F> rawManagedObjectMetaData)
Specifies theRawManagedObjectMetaData.- Parameters:
rawManagedObjectMetaData-RawManagedObjectMetaData.
-
manageManagedObject
public void manageManagedObject(RawBoundManagedObjectInstanceMetaData<?> boundInstanceMetaData, AssetManagerFactory assetManagerFactory, long defaultAsynchronousFlowTimeout)
Adds aManagedObjectMetaDatato be managed by the managingOffice.- Parameters:
boundInstanceMetaData-RawBoundManagedObjectInstanceMetaDatafor theManagedObjectMetaData.assetManagerFactory-AssetManagerFactory.defaultAsynchronousFlowTimeout- DefaultAsynchronousFlowtimeout.
-
getManagingOfficeName
public java.lang.String getManagingOfficeName()
Obtains the name for theOfficemanaging theManagedObject.- Returns:
- Name for the
Officemanaging theManagedObject.
-
getInputManagedObjectConfiguration
public InputManagedObjectConfiguration<?> getInputManagedObjectConfiguration()
Indicates if the
ManagedObjectSourcerequires instigatingFlowinstances.If
trueit means theManagedObjectSourcemust be bound to theProcessStateof theOffice.- Returns:
trueif theManagedObjectSourcerequires instigatingFlowinstances.
-
getRawManagedObjectMetaData
public RawManagedObjectMetaData<?,F> getRawManagedObjectMetaData()
Obtains the
InputManagedObjectConfigurationconfiguring the bind of theManagedObjectwithin theProcessStateof theOffice.Should the
ManagedObjectSourceinstigate aFlow, aManagedObjectfrom theManagedObjectSourceis to be made available to theProcessState. Whether theOfficewants to make use of theManagedObjectis its choice but is available to do so.- Returns:
InputManagedObjectConfigurationconfiguring the bind of theManagedObjectwithin theProcessStateof theOffice.
-
isRequireFlows
public boolean isRequireFlows()
- Returns:
RawManagedObjectMetaDatafor theManagedObjectto 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, AssetManagerFactory assetManagerFactory, long defaultAsynchronousFlowTimeout, OfficeFloorIssues issues)
- Parameters:
officeMetaData-OfficeMetaData.processBoundManagedObjectMetaData-RawBoundManagedObjectMetaDataof theProcessStateboundManagedObjectinstances of the managingOffice.moAdminFactory-ManagedObjectAdministrationMetaDataFactory.defaultExecutionStrategy- DefaultExecutionStrategy.executionStrategies-ExecutionStrategyinstances by their name.assetManagerFactory-AssetManagerFactory.defaultAsynchronousFlowTimeout- DefaultAsynchronousFlowtimeout.issues-OfficeFloorIssues.
-
getManagedObjectExecuteManagerFactory
public ManagedObjectExecuteManagerFactory<F> getManagedObjectExecuteManagerFactory()
Obtains theManagedObjectExecuteManagerFactoryfor theManagedObjectSource.- Returns:
ManagedObjectExecuteManagerFactoryfor theManagedObjectSource.
-
-