Class ManagedExecutionFactoryImpl
java.lang.Object
net.officefloor.frame.impl.execute.execution.ManagedExecutionFactoryImpl
- All Implemented Interfaces:
ManagedExecutionFactory
ManagedExecutionFactory implementation.- Author:
- Daniel Sagenschneider
-
Constructor Summary
ConstructorsConstructorDescriptionManagedExecutionFactoryImpl(ThreadCompletionListener[] threadCompletionListeners) Instantiate. -
Method Summary
Modifier and TypeMethodDescription<E extends Throwable>
ManagedExecution<E>createManagedExecution(Executive executive, Execution<E> execution) Creates theManagedExecution.static booleanIndicates if the currentThreadis executing within aManagedExecution.
-
Constructor Details
-
ManagedExecutionFactoryImpl
Instantiate.- Parameters:
threadCompletionListeners-ThreadCompletionListenerinstances.
-
-
Method Details
-
isCurrentThreadManaged
public static boolean isCurrentThreadManaged()Indicates if the currentThreadis executing within aManagedExecution.- Returns:
trueif currentThreadis executing within aManagedExecution.
-
createManagedExecution
public <E extends 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.
-