public class DefaultExecutionFlow extends java.lang.Object implements ExecutionFlow, org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.BeanNameAware
| Constructor and Description |
|---|
DefaultExecutionFlow() |
DefaultExecutionFlow(ExecutionSpec executionSpec) |
DefaultExecutionFlow(ExecutionSpec executionSpec,
java.util.Map<java.lang.String,java.lang.Object> parameters) |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
void |
doExecuteRunnable(java.lang.Runnable runnable) |
boolean |
equals(java.lang.Object obj) |
ExecutionSpec |
getExecutionSpec()
The specifications of the execution flow.
|
java.lang.Boolean |
getFailOnError() |
java.lang.String |
getName()
The name of this execution flow.
|
java.lang.Object |
getParameter(java.lang.String parameterName)
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
exeception otherwise.
|
int |
hashCode() |
java.lang.Boolean |
isSetAsParameter(java.lang.String key)
Whether this immutable parameter is set
|
void |
run() |
java.util.Iterator<java.lang.Runnable> |
runnables()
List sub-runnables that would be executed if run() method would be
called.
|
void |
setBeanName(java.lang.String name) |
void |
setExecutables(java.util.List<java.lang.Runnable> executables) |
void |
setExecutionContext(ExecutionContext executionContext) |
void |
setFailOnError(java.lang.Boolean failOnError) |
void |
setParameters(java.util.Map<java.lang.String,java.lang.Object> attributes) |
void |
setPath(java.lang.String path) |
java.lang.String |
toString() |
public DefaultExecutionFlow()
public DefaultExecutionFlow(ExecutionSpec executionSpec)
public DefaultExecutionFlow(ExecutionSpec executionSpec, java.util.Map<java.lang.String,java.lang.Object> parameters)
public void run()
run in interface java.lang.Runnablepublic java.util.Iterator<java.lang.Runnable> runnables()
runnables in interface ExecutionFlowpublic java.lang.Runnable getRunnable()
getRunnable in interface ExecutionFlowpublic void doExecuteRunnable(java.lang.Runnable runnable)
public void afterPropertiesSet()
throws java.lang.Exception
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanjava.lang.Exceptionpublic void setBeanName(java.lang.String name)
setBeanName in interface org.springframework.beans.factory.BeanNameAwarepublic void setExecutables(java.util.List<java.lang.Runnable> executables)
public void setParameters(java.util.Map<java.lang.String,java.lang.Object> attributes)
public java.lang.String getName()
ExecutionFlowgetName in interface ExecutionFlowpublic ExecutionSpec getExecutionSpec()
ExecutionFlowgetExecutionSpec in interface ExecutionFlowpublic java.lang.Object getParameter(java.lang.String parameterName)
ExecutionFlowgetParameter in interface ExecutionFlowpublic java.lang.Boolean isSetAsParameter(java.lang.String key)
ExecutionFlowisSetAsParameter in interface ExecutionFlowpublic java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String getPath()
public void setPath(java.lang.String path)
public java.lang.Boolean getFailOnError()
public void setFailOnError(java.lang.Boolean failOnError)
public void setExecutionContext(ExecutionContext executionContext)
Copyright © 2007–2020. All rights reserved.