Package org.eclipse.epsilon.eol.execute
Class ExecutorFactory
java.lang.Object
org.eclipse.epsilon.eol.execute.ExecutorFactory
- All Implemented Interfaces:
BaseDelegate<ExecutorFactory>
- Direct Known Subclasses:
RuleExecutorFactory
This class is not thread-safe.
Use serial thread confinement (ThreadLocal) if using from multiple threads.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.eclipse.epsilon.common.function.BaseDelegate
BaseDelegate.MergeMode -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddExecutionListener(IExecutionListener listener) final voidvoiddispose()final voidfinal Objectexecute(ModuleElement moduleElement, IEolContext context) final Objectexecute(IExecutableModuleElementParameter moduleElement, IEolContext context, Object parameter) protected ObjectexecuteImpl(ModuleElement moduleElement, IEolContext context) Overriding classes should call this super method.protected ObjectexecuteImpl(IExecutableModuleElementParameter moduleElement, IEolContext context, Object parameter) getBase()final StackTraceManagerbooleanvoidmerge(BaseDelegate.MergeMode mode) protected voidpostExecuteFailure(ModuleElement moduleElement, Exception ex, IEolContext context) Overriding classes must call this super method.protected voidpostExecuteFinally(ModuleElement moduleElement, IEolContext context) Overriding classes must call this super method.protected voidpostExecuteSuccess(ModuleElement moduleElement, Object result, IEolContext context) Overriding classes must call this super method.protected voidpreExecute(ModuleElement moduleElement, IEolContext context) booleanremoveExecutionListener(IExecutionListener listener) voidsetBase(ExecutorFactory parent) voidsetExecutionController(ExecutionController executionController) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.eclipse.epsilon.common.function.BaseDelegate
delegateLookup, delegateLookup, delegateLookup, getFrom, getTo, mergeCollectionsUnique
-
Constructor Details
-
ExecutorFactory
public ExecutorFactory() -
ExecutorFactory
- Parameters:
parent-- Since:
- 1.6
-
-
Method Details
-
enableStackTraceManager
public final void enableStackTraceManager()- Since:
- 1.6
-
disableStackTraceManager
public final void disableStackTraceManager()- Since:
- 1.6
-
getStackTraceManager
-
addExecutionListener
-
getExecutionListeners
-
removeExecutionListener
-
getExecutionController
-
setExecutionController
-
isProfilingEnabled
public boolean isProfilingEnabled()- Returns:
- Since:
- 1.6
-
preExecute
protected void preExecute(ModuleElement moduleElement, IEolContext context) throws EolRuntimeException - Parameters:
moduleElement-context-- Throws:
EolRuntimeException- Since:
- 1.6
-
postExecuteSuccess
Overriding classes must call this super method.- Parameters:
moduleElement-result-context-- Since:
- 1.6
-
postExecuteFailure
protected void postExecuteFailure(ModuleElement moduleElement, Exception ex, IEolContext context) throws EolRuntimeException Overriding classes must call this super method.- Parameters:
moduleElement-ex-context-- Throws:
EolRuntimeException- Since:
- 1.6
-
postExecuteFinally
Overriding classes must call this super method.- Parameters:
moduleElement-context-- Since:
- 1.6
-
executeImpl
Overriding classes should call this super method.- Parameters:
moduleElement-context-- Returns:
- Throws:
Exception- Since:
- 1.6
-
executeImpl
protected Object executeImpl(IExecutableModuleElementParameter moduleElement, IEolContext context, Object parameter) throws EolRuntimeException - Parameters:
moduleElement-context-self-- Returns:
- Throws:
EolRuntimeException- Since:
- 1.6
-
execute
public final Object execute(ModuleElement moduleElement, IEolContext context) throws EolRuntimeException - Throws:
EolRuntimeException
-
execute
public final Object execute(IExecutableModuleElementParameter moduleElement, IEolContext context, Object parameter) throws EolRuntimeException - Parameters:
moduleElement-context-self-- Returns:
- Throws:
EolRuntimeException- Since:
- 1.6
-
getActiveModuleElement
-
setBase
- Parameters:
parent-- Since:
- 1.6
-
getBase
- Specified by:
getBasein interfaceBaseDelegate<ExecutorFactory>- Since:
- 1.6
-
merge
- Specified by:
mergein interfaceBaseDelegate<ExecutorFactory>- Since:
- 1.6
-
dispose
public void dispose()- Since:
- 1.6
-