Class ManagedObjectExecutorFactory<F extends java.lang.Enum<F>>
- java.lang.Object
- 
- net.officefloor.frame.api.managedobject.executor.ManagedObjectExecutorFactory<F>
 
- 
- Type Parameters:
- F- Flow- Enum.
 
 public class ManagedObjectExecutorFactory<F extends java.lang.Enum<F>> extends java.lang.ObjectConvenience class to wrap the ManagedObjectServiceContextas anExecutor.This allows the ManagedObjectSourceto integrate with libraries requiring anExecutor. An example being SSL requiring to runRunnabletasks.- Author:
- Daniel Sagenschneider
 
- 
- 
Constructor SummaryConstructors Constructor Description ManagedObjectExecutorFactory(AbstractAsyncManagedObjectSource.MetaDataContext<?,F> context, F flowKey, java.lang.String teamName)Instantiate for invoking byFlowkey.ManagedObjectExecutorFactory(AbstractAsyncManagedObjectSource.MetaDataContext<?,Indexed> context, java.lang.String teamName)Instantiate for invoking by next index.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.concurrent.ExecutorcreateExecutor(ManagedObjectServiceContext<F> context, ManagedObject managedObject)Creates theExecutor.
 
- 
- 
- 
Constructor Detail- 
ManagedObjectExecutorFactorypublic ManagedObjectExecutorFactory(AbstractAsyncManagedObjectSource.MetaDataContext<?,F> context, F flowKey, java.lang.String teamName) Instantiate for invoking byFlowkey.- Parameters:
- context-- AbstractAsyncManagedObjectSource.MetaDataContextfor the- ManagedObjectSource.
- flowKey-- Flowkey to register the- Flow.
- teamName- Name of the- Team.
 
 - 
ManagedObjectExecutorFactorypublic ManagedObjectExecutorFactory(AbstractAsyncManagedObjectSource.MetaDataContext<?,Indexed> context, java.lang.String teamName) Instantiate for invoking by next index.- Parameters:
- context-- AbstractAsyncManagedObjectSource.MetaDataContextfor the- ManagedObjectSource.
- teamName- Name of the- Team.
 
 
- 
 - 
Method Detail- 
createExecutorpublic java.util.concurrent.Executor createExecutor(ManagedObjectServiceContext<F> context, ManagedObject managedObject) Creates theExecutor.- Parameters:
- context-- ManagedObjectServiceContextfor the- ManagedObjectSource.
- managedObject-- ManagedObjectused for all- Runnableexecutions.
- Returns:
- Executorthat delegates to the- ManagedObjectExecuteContextto execute the- Runnableinstances.
 
 
- 
 
-