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.Runnable
public java.util.Iterator<java.lang.Runnable> runnables()
runnables
in interface ExecutionFlow
public java.lang.Runnable getRunnable()
getRunnable
in interface ExecutionFlow
public void doExecuteRunnable(java.lang.Runnable runnable)
public void afterPropertiesSet() throws java.lang.Exception
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
java.lang.Exception
public void setBeanName(java.lang.String name)
setBeanName
in interface org.springframework.beans.factory.BeanNameAware
public 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()
ExecutionFlow
getName
in interface ExecutionFlow
public ExecutionSpec getExecutionSpec()
ExecutionFlow
getExecutionSpec
in interface ExecutionFlow
public java.lang.Object getParameter(java.lang.String parameterName)
ExecutionFlow
getParameter
in interface ExecutionFlow
public java.lang.Boolean isSetAsParameter(java.lang.String key)
ExecutionFlow
isSetAsParameter
in interface ExecutionFlow
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public 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.