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 TypeMethodDescriptionvoid
addExecutionListener
(IExecutionListener listener) final void
void
dispose()
final void
final Object
execute
(ModuleElement moduleElement, IEolContext context) final Object
execute
(IExecutableModuleElementParameter moduleElement, IEolContext context, Object parameter) protected Object
executeImpl
(ModuleElement moduleElement, IEolContext context) Overriding classes should call this super method.protected Object
executeImpl
(IExecutableModuleElementParameter moduleElement, IEolContext context, Object parameter) getBase()
final StackTraceManager
boolean
void
merge
(BaseDelegate.MergeMode mode) protected void
postExecuteFailure
(ModuleElement moduleElement, Exception ex, IEolContext context) Overriding classes must call this super method.protected void
postExecuteFinally
(ModuleElement moduleElement, IEolContext context) Overriding classes must call this super method.protected void
postExecuteSuccess
(ModuleElement moduleElement, Object result, IEolContext context) Overriding classes must call this super method.protected void
preExecute
(ModuleElement moduleElement, IEolContext context) boolean
removeExecutionListener
(IExecutionListener listener) void
setBase
(ExecutorFactory parent) void
setExecutionController
(ExecutionController executionController) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:
getBase
in interfaceBaseDelegate<ExecutorFactory>
- Since:
- 1.6
-
merge
- Specified by:
merge
in interfaceBaseDelegate<ExecutorFactory>
- Since:
- 1.6
-
dispose
public void dispose()- Since:
- 1.6
-