Helper class to create Executor objects
Modifiers | Name | Description |
---|---|---|
static java.lang.String |
DEFAULT_EXECUTOR |
Type | Name and description |
---|---|
static java.util.Map<java.lang.String, java.lang.Class<? extends Executor>> |
BUILT_IN_EXECUTORS |
Constructor and description |
---|
ExecutorFactory
() |
Type Params | Return Type | Name and description |
---|---|---|
|
protected Executor |
createExecutor(java.lang.Class<? extends Executor> clazz, java.lang.String name, Session session) |
|
static java.lang.String |
findNameByClass(java.lang.Class<Executor> clazz) Extract the executor name by using the annotation ServiceName or fallback to simple classname
if the annotation is not provided |
|
Executor |
getExecutor(java.lang.String processName, ProcessConfig processConfig, BodyDef script, Session session) |
|
protected java.lang.Class<? extends Executor> |
getExecutorClass(java.lang.String executorName) |
|
protected java.lang.String |
getExecutorName(ProcessConfig taskConfig, Session session) Find out the 'executor' to be used in the process definition or in teh session configuration object |
|
protected boolean |
isTypeSupported(ScriptType type, java.lang.Object executor) |
|
void |
signalExecutors() |
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Extract the executor name by using the annotation ServiceName
or fallback to simple classname
if the annotation is not provided
Find out the 'executor' to be used in the process definition or in teh session configuration object
Groovy Documentation