public class RunnableCallFlow extends java.lang.Object implements ExecutionFlow, org.springframework.context.ApplicationContextAware
Runnable
(identified by their
bean name in the Spring Application Context) after configuring the Execution
context and a Map potentially shared by the called Runnable
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
VAR_CALL_INDEX
Key in the execution context for the index of the call (e.g.
|
Constructor and Description |
---|
RunnableCallFlow() |
Modifier and Type | Method and Description |
---|---|
void |
doExecuteRunnable(java.lang.Runnable runnable) |
ExecutionSpec |
getExecutionSpec()
The specifications of the execution flow.
|
java.lang.String |
getName()
The name of this execution flow.
|
java.lang.Object |
getParameter(java.lang.String key)
Retrieve an immutable parameter
|
java.lang.String |
getPath() |
java.lang.Runnable |
getRunnable()
If there is one and only one runnable wrapped return it, throw an
exception otherwise.
|
java.lang.Boolean |
isSetAsParameter(java.lang.String key)
Whether this immutable parameter is set
|
void |
run()
Executes the flow.
|
java.util.Iterator<java.lang.Runnable> |
runnables()
List sub-runnables that would be executed if run() method would be
called.
|
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext) |
void |
setExecutionContext(ExecutionContext executionContext) |
void |
setFailOnError(java.lang.Boolean failOnError) |
void |
setName(java.lang.String name) |
void |
setPath(java.lang.String path) |
void |
setRunnableCalls(java.util.List<RunnableCall> runnableCalls) |
void |
setSharedContextValuesMap(java.util.Map<java.lang.String,java.lang.Object> contextValues) |
java.lang.String |
toString() |
public static final java.lang.String VAR_CALL_INDEX
public void doExecuteRunnable(java.lang.Runnable runnable)
public void run()
RunnableCall
, the corresponding
flow is retrieved from the Spring Application Context, the
ExecutionContext
and sharedContextValuesMap
are
configured and the Runnable
is called.run
in interface java.lang.Runnable
public java.util.Iterator<java.lang.Runnable> runnables()
ExecutionFlow
runnables
in interface ExecutionFlow
public java.lang.Runnable getRunnable()
ExecutionFlow
getRunnable
in interface ExecutionFlow
public java.lang.String toString()
toString
in class java.lang.Object
public ExecutionSpec getExecutionSpec()
ExecutionFlow
getExecutionSpec
in interface ExecutionFlow
public java.lang.String getName()
ExecutionFlow
getName
in interface ExecutionFlow
public java.lang.Object getParameter(java.lang.String key)
ExecutionFlow
getParameter
in interface ExecutionFlow
public java.lang.String getPath()
public java.lang.Boolean isSetAsParameter(java.lang.String key)
ExecutionFlow
isSetAsParameter
in interface ExecutionFlow
public void setName(java.lang.String name)
public void setPath(java.lang.String path)
public void setExecutionContext(ExecutionContext executionContext)
public void setRunnableCalls(java.util.List<RunnableCall> runnableCalls)
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
setApplicationContext
in interface org.springframework.context.ApplicationContextAware
public void setSharedContextValuesMap(java.util.Map<java.lang.String,java.lang.Object> contextValues)
public void setFailOnError(java.lang.Boolean failOnError)
Copyright © 2007–2020. All rights reserved.