Class RawManagingOfficeMetaData<F extends Enum<F>>
java.lang.Object
net.officefloor.frame.impl.construct.managedobjectsource.RawManagingOfficeMetaData<F>
RawManagingOfficeMetaData implementation.- Author:
- Daniel Sagenschneider
-
Constructor Summary
ConstructorsConstructorDescriptionRawManagingOfficeMetaData(String managingOfficeName, String recycleFunctionName, InputManagedObjectConfiguration<?> inputConfiguration, ManagedObjectFlowMetaData<F>[] flowMetaDatas, ManagedObjectExecutionMetaData[] executionMetaDatas, ManagingOfficeConfiguration<F> managingOfficeConfiguration, ManagedFunctionInvocation[] startupInvocations) Initialise. -
Method Summary
Modifier and TypeMethodDescriptionIndicates if theManagedObjectSourcerequires instigatingFlowinstances.Obtains theManagedObjectExecuteManagerFactoryfor theManagedObjectSource.Obtains the name for theOfficemanaging theManagedObject.Obtains theInputManagedObjectConfigurationconfiguring the bind of theManagedObjectwithin theProcessStateof theOffice.booleanstatic booleanisRequireFlows(ManagedObjectFlowMetaData<?>[] flowMetaData) Determines if theManagedObjectSourceinstigatesFlowinstances.voidmanageByOffice(OfficeMetaData officeMetaData, RawBoundManagedObjectMetaData[] processBoundManagedObjectMetaData, ManagedObjectAdministrationMetaDataFactory moAdminFactory, ThreadFactory[] defaultExecutionStrategy, Map<String, ThreadFactory[]> executionStrategies, AssetManagerRegistry assetManagerRegistry, long defaultAsynchronousFlowTimeout, OfficeFloorIssues issues) voidmanageManagedObject(RawBoundManagedObjectInstanceMetaData<?> boundInstanceMetaData, AssetManagerRegistry assetManagerRegistry, long defaultAsynchronousFlowTimeout) Adds aManagedObjectMetaDatato be managed by the managingOffice.voidsetRawManagedObjectMetaData(RawManagedObjectMetaData<?, F> rawManagedObjectMetaData) Specifies theRawManagedObjectMetaData.
-
Constructor Details
-
RawManagingOfficeMetaData
public RawManagingOfficeMetaData(String managingOfficeName, String recycleFunctionName, InputManagedObjectConfiguration<?> inputConfiguration, ManagedObjectFlowMetaData<F>[] flowMetaDatas, ManagedObjectExecutionMetaData[] executionMetaDatas, ManagingOfficeConfiguration<F> managingOfficeConfiguration, ManagedFunctionInvocation[] startupInvocations) 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.startupInvocations- Start upManagedFunctionInvocationinstances.
-
-
Method Details
-
isRequireFlows
Determines if theManagedObjectSourceinstigatesFlowinstances.- Parameters:
flowMetaData-ManagedObjectFlowMetaDatainstances of theManagedObjectSource.- Returns:
trueifManagedObjectSourceinstigatesFlowinstances.
-
setRawManagedObjectMetaData
Specifies theRawManagedObjectMetaData.- Parameters:
rawManagedObjectMetaData-RawManagedObjectMetaData.
-
manageManagedObject
public void manageManagedObject(RawBoundManagedObjectInstanceMetaData<?> boundInstanceMetaData, AssetManagerRegistry assetManagerRegistry, long defaultAsynchronousFlowTimeout) Adds aManagedObjectMetaDatato be managed by the managingOffice.- Parameters:
boundInstanceMetaData-RawBoundManagedObjectInstanceMetaDatafor theManagedObjectMetaData.assetManagerRegistry-AssetManagerRegistry.defaultAsynchronousFlowTimeout- DefaultAsynchronousFlowtimeout.
-
getManagingOfficeName
Obtains the name for theOfficemanaging theManagedObject.- Returns:
- Name for the
Officemanaging theManagedObject.
-
getInputManagedObjectConfiguration
Indicates if the
ManagedObjectSourcerequires instigatingFlowinstances.If
trueit means theManagedObjectSourcemust be bound to theProcessStateof theOffice.- Returns:
trueif theManagedObjectSourcerequires instigatingFlowinstances.
-
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, ThreadFactory[] defaultExecutionStrategy, Map<String, ThreadFactory[]> executionStrategies, AssetManagerRegistry assetManagerRegistry, long defaultAsynchronousFlowTimeout, OfficeFloorIssues issues) - Parameters:
officeMetaData-OfficeMetaData.processBoundManagedObjectMetaData-RawBoundManagedObjectMetaDataof theProcessStateboundManagedObjectinstances of the managingOffice.moAdminFactory-ManagedObjectAdministrationMetaDataFactory.defaultExecutionStrategy- DefaultExecutionStrategy.executionStrategies-ExecutionStrategyinstances by their name.assetManagerRegistry-AssetManagerRegistry.defaultAsynchronousFlowTimeout- DefaultAsynchronousFlowtimeout.issues-OfficeFloorIssues.
-
getManagedObjectExecuteManagerFactory
Obtains theManagedObjectExecuteManagerFactoryfor theManagedObjectSource.- Returns:
ManagedObjectExecuteManagerFactoryfor theManagedObjectSource.
-