public class SimpleFlowFactoryBean extends java.lang.Object implements org.springframework.beans.factory.FactoryBean<SimpleFlow>, org.springframework.beans.factory.InitializingBean
Modifier and Type | Class and Description |
---|---|
static class |
SimpleFlowFactoryBean.DelegateState
A State that proxies a delegate and changes its name but leaves its
behavior unchanged.
|
Constructor and Description |
---|
SimpleFlowFactoryBean() |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet()
Check mandatory properties (name).
|
protected State |
createNewStepState(State state,
java.lang.String oldName,
java.lang.String stateName)
Provides an extension point to provide alternative
StepState
implementations within a SimpleFlow |
SimpleFlow |
getObject() |
java.lang.Class<?> |
getObjectType() |
boolean |
isSingleton() |
void |
setFlowType(java.lang.Class<SimpleFlow> flowType) |
void |
setName(java.lang.String name)
The name of the flow that is created by this factory.
|
void |
setStateTransitionComparator(java.util.Comparator<StateTransition> stateTransitionComparator) |
void |
setStateTransitions(java.util.List<StateTransition> stateTransitions)
The raw state transitions for the flow.
|
public void setStateTransitionComparator(java.util.Comparator<StateTransition> stateTransitionComparator)
stateTransitionComparator
- Comparator
implementation that addresses
the ordering of state evaluationpublic void setFlowType(java.lang.Class<SimpleFlow> flowType)
flowType
- Used to inject the type of flow (regular Spring Batch or JSR-352)public void setName(java.lang.String name)
name
- the value of the namepublic void setStateTransitions(java.util.List<StateTransition> stateTransitions)
stateTransitions
- the list of transitionspublic void afterPropertiesSet() throws java.lang.Exception
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
java.lang.Exception
- thrown if error occurs.public SimpleFlow getObject() throws java.lang.Exception
getObject
in interface org.springframework.beans.factory.FactoryBean<SimpleFlow>
java.lang.Exception
protected State createNewStepState(State state, java.lang.String oldName, java.lang.String stateName)
StepState
implementations within a SimpleFlow
state
- The state that will be used to create the StepStateoldName
- The name to be replacedstateName
- The name for the new Statepublic java.lang.Class<?> getObjectType()
getObjectType
in interface org.springframework.beans.factory.FactoryBean<SimpleFlow>
public boolean isSingleton()
isSingleton
in interface org.springframework.beans.factory.FactoryBean<SimpleFlow>