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
public class ExecutorFactory extends Object implements BaseDelegate<ExecutorFactory>
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 Constructor Description ExecutorFactory()
ExecutorFactory(ExecutorFactory parent)
-
Method Summary
-
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 Detail
-
ExecutorFactory
public ExecutorFactory()
-
ExecutorFactory
public ExecutorFactory(ExecutorFactory parent)
- Parameters:
parent
-- Since:
- 1.6
-
-
Method Detail
-
enableStackTraceManager
public final void enableStackTraceManager()
- Since:
- 1.6
-
disableStackTraceManager
public final void disableStackTraceManager()
- Since:
- 1.6
-
getStackTraceManager
public final StackTraceManager getStackTraceManager()
-
addExecutionListener
public void addExecutionListener(IExecutionListener listener)
-
getExecutionListeners
public Collection<IExecutionListener> getExecutionListeners()
-
removeExecutionListener
public boolean removeExecutionListener(IExecutionListener listener)
-
getExecutionController
public ExecutionController getExecutionController()
-
setExecutionController
public void setExecutionController(ExecutionController executionController)
-
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
protected void postExecuteSuccess(ModuleElement moduleElement, Object result, IEolContext context)
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
protected void postExecuteFinally(ModuleElement moduleElement, IEolContext context)
Overriding classes must call this super method.- Parameters:
moduleElement
-context
-- Since:
- 1.6
-
executeImpl
protected Object executeImpl(ModuleElement moduleElement, IEolContext context) throws Exception
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
public ModuleElement getActiveModuleElement()
-
setBase
public void setBase(ExecutorFactory parent)
- Parameters:
parent
-- Since:
- 1.6
-
getBase
public ExecutorFactory getBase()
- Specified by:
getBase
in interfaceBaseDelegate<ExecutorFactory>
- Since:
- 1.6
-
merge
public void merge(BaseDelegate.MergeMode mode)
- Specified by:
merge
in interfaceBaseDelegate<ExecutorFactory>
- Since:
- 1.6
-
dispose
public void dispose()
- Since:
- 1.6
-
-