Class ManagedObjectExecutorFactory<F extends Enum<F>>
java.lang.Object
net.officefloor.frame.api.managedobject.executor.ManagedObjectExecutorFactory<F>
- Type Parameters:
F- FlowEnum.
Convenience class to wrap the ManagedObjectServiceContext as an
Executor.
This allows the ManagedObjectSource to integrate with libraries
requiring an Executor. An example being SSL requiring to run
Runnable tasks.
- Author:
- Daniel Sagenschneider
-
Constructor Summary
ConstructorsConstructorDescriptionManagedObjectExecutorFactory(AbstractAsyncManagedObjectSource.MetaDataContext<?, F> context, F flowKey, String teamName) Instantiate for invoking byFlowkey.ManagedObjectExecutorFactory(AbstractAsyncManagedObjectSource.MetaDataContext<?, Indexed> context, String teamName) Instantiate for invoking by next index. -
Method Summary
Modifier and TypeMethodDescriptioncreateExecutor(ManagedObjectServiceContext<F> context, ManagedObject managedObject) Creates theExecutor.
-
Constructor Details
-
ManagedObjectExecutorFactory
public ManagedObjectExecutorFactory(AbstractAsyncManagedObjectSource.MetaDataContext<?, F> context, F flowKey, String teamName) Instantiate for invoking byFlowkey.- Parameters:
context-AbstractAsyncManagedObjectSource.MetaDataContextfor theManagedObjectSource.flowKey-Flowkey to register theFlow.teamName- Name of theTeam.
-
ManagedObjectExecutorFactory
public ManagedObjectExecutorFactory(AbstractAsyncManagedObjectSource.MetaDataContext<?, Indexed> context, String teamName) Instantiate for invoking by next index.- Parameters:
context-AbstractAsyncManagedObjectSource.MetaDataContextfor theManagedObjectSource.teamName- Name of theTeam.
-
-
Method Details
-
createExecutor
Creates theExecutor.- Parameters:
context-ManagedObjectServiceContextfor theManagedObjectSource.managedObject-ManagedObjectused for allRunnableexecutions.- Returns:
Executorthat delegates to theManagedObjectExecuteContextto execute theRunnableinstances.
-