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 java.lang.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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addExecutionListener(IExecutionListener listener)
void
disableStackTraceManager()
void
dispose()
void
enableStackTraceManager()
java.lang.Object
execute(ModuleElement moduleElement, IEolContext context)
java.lang.Object
execute(IExecutableModuleElementParameter moduleElement, IEolContext context, java.lang.Object parameter)
protected java.lang.Object
executeImpl(ModuleElement moduleElement, IEolContext context)
Overriding classes should call this super method.protected java.lang.Object
executeImpl(IExecutableModuleElementParameter moduleElement, IEolContext context, java.lang.Object parameter)
ModuleElement
getActiveModuleElement()
ExecutorFactory
getBase()
ExecutionController
getExecutionController()
java.util.Collection<IExecutionListener>
getExecutionListeners()
StackTraceManager
getStackTraceManager()
boolean
isProfilingEnabled()
void
merge(BaseDelegate.MergeMode mode)
protected void
postExecuteFailure(ModuleElement moduleElement, java.lang.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, java.lang.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 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 java.util.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, java.lang.Object result, IEolContext context)
Overriding classes must call this super method.- Parameters:
moduleElement
-result
-context
-- Since:
- 1.6
-
postExecuteFailure
protected void postExecuteFailure(ModuleElement moduleElement, java.lang.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 java.lang.Object executeImpl(ModuleElement moduleElement, IEolContext context) throws java.lang.Exception
Overriding classes should call this super method.- Parameters:
moduleElement
-context
-- Returns:
- Throws:
java.lang.Exception
- Since:
- 1.6
-
executeImpl
protected java.lang.Object executeImpl(IExecutableModuleElementParameter moduleElement, IEolContext context, java.lang.Object parameter) throws EolRuntimeException
- Parameters:
moduleElement
-context
-self
-- Returns:
- Throws:
EolRuntimeException
- Since:
- 1.6
-
execute
public final java.lang.Object execute(ModuleElement moduleElement, IEolContext context) throws EolRuntimeException
- Throws:
EolRuntimeException
-
execute
public final java.lang.Object execute(IExecutableModuleElementParameter moduleElement, IEolContext context, java.lang.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
-
-