Class ManagedExecutionFactoryImpl
- java.lang.Object
-
- net.officefloor.frame.impl.execute.execution.ManagedExecutionFactoryImpl
-
- All Implemented Interfaces:
ManagedExecutionFactory
public class ManagedExecutionFactoryImpl extends java.lang.Object implements ManagedExecutionFactory
ManagedExecutionFactoryimplementation.- Author:
- Daniel Sagenschneider
-
-
Constructor Summary
Constructors Constructor Description ManagedExecutionFactoryImpl(ThreadCompletionListener[] threadCompletionListeners)Instantiate.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description <E extends java.lang.Throwable>
ManagedExecution<E>createManagedExecution(Executive executive, Execution<E> execution)Creates theManagedExecution.static booleanisCurrentThreadManaged()Indicates if the currentThreadis executing within aManagedExecution.
-
-
-
Constructor Detail
-
ManagedExecutionFactoryImpl
public ManagedExecutionFactoryImpl(ThreadCompletionListener[] threadCompletionListeners)
Instantiate.- Parameters:
threadCompletionListeners-ThreadCompletionListenerinstances.
-
-
Method Detail
-
isCurrentThreadManaged
public static boolean isCurrentThreadManaged()
Indicates if the currentThreadis executing within aManagedExecution.- Returns:
trueif currentThreadis executing within aManagedExecution.
-
createManagedExecution
public <E extends java.lang.Throwable> ManagedExecution<E> createManagedExecution(Executive executive, Execution<E> execution)
Description copied from interface:ManagedExecutionFactoryCreates theManagedExecution.- Specified by:
createManagedExecutionin interfaceManagedExecutionFactory- Type Parameters:
E- PossibleEscalationfromExecution.- Parameters:
executive-Executive.execution-Execution.- Returns:
ManagedExecution.
-
-