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
ManagedExecutionFactory
implementation.- 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 boolean
isCurrentThreadManaged()
Indicates if the currentThread
is executing within aManagedExecution
.
-
-
-
Constructor Detail
-
ManagedExecutionFactoryImpl
public ManagedExecutionFactoryImpl(ThreadCompletionListener[] threadCompletionListeners)
Instantiate.- Parameters:
threadCompletionListeners
-ThreadCompletionListener
instances.
-
-
Method Detail
-
isCurrentThreadManaged
public static boolean isCurrentThreadManaged()
Indicates if the currentThread
is executing within aManagedExecution
.- Returns:
true
if currentThread
is executing within aManagedExecution
.
-
createManagedExecution
public <E extends java.lang.Throwable> ManagedExecution<E> createManagedExecution(Executive executive, Execution<E> execution)
Description copied from interface:ManagedExecutionFactory
Creates theManagedExecution
.- Specified by:
createManagedExecution
in interfaceManagedExecutionFactory
- Type Parameters:
E
- PossibleEscalation
fromExecution
.- Parameters:
executive
-Executive
.execution
-Execution
.- Returns:
ManagedExecution
.
-
-