Class SimpleFlowFactoryBean.DelegateState
java.lang.Object
org.springframework.batch.core.job.flow.support.state.AbstractState
org.springframework.batch.core.configuration.xml.SimpleFlowFactoryBean.DelegateState
- All Implemented Interfaces:
FlowHolder,State
- Enclosing class:
- SimpleFlowFactoryBean
A State that proxies a delegate and changes its name but leaves its behavior
unchanged.
- Author:
- Dave Syer
-
Method Summary
Methods inherited from class org.springframework.batch.core.job.flow.support.state.AbstractState
getName, toString
-
Method Details
-
getState
Gets the current state.- Returns:
- The
Statebeing used by the factory bean.
-
isEndState
public boolean isEndState()Description copied from interface:StateInquire as to whether aStateis an end state. Implementations should return false if processing can continue, even if that would require a restart.- Specified by:
isEndStatein interfaceState- Returns:
- true if this
Stateis the end of processing
-
handle
Description copied from interface:StateHandle some business or processing logic and return a status that can be used to drive a flow to the nextState. The status can be any string, but special meaning is assigned to the static constants inFlowExecution. The context can be used by implementations to do whatever they need to do. The same context will be passed to allStateinstances, so implementations should be careful that the context is thread-safe, or used in a thread-safe manner.- Specified by:
handlein interfaceState- Specified by:
handlein classAbstractState- Parameters:
executor- the context passed in by the caller- Returns:
- a status for the execution
- Throws:
Exception- if anything goes wrong
-
getFlows
- Specified by:
getFlowsin interfaceFlowHolder
-