Class AbstractState
java.lang.Object
org.springframework.batch.core.job.flow.support.state.AbstractState
- All Implemented Interfaces:
State
- Direct Known Subclasses:
DecisionState
,EndState
,FlowState
,SimpleFlowFactoryBean.DelegateState
,SplitState
,StepState
- Since:
- 2.0
- Author:
- Dave Syer
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetName()
The name of the state.abstract FlowExecutionStatus
handle
(FlowExecutor executor) Handle some business or processing logic and return a status that can be used to drive a flow to the nextState
.toString()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.springframework.batch.core.job.flow.State
isEndState
-
Constructor Details
-
AbstractState
- Parameters:
name
- of the state.
-
-
Method Details
-
getName
Description copied from interface:State
The name of the state. Should be unique within a flow. -
toString
-
handle
Description copied from interface:State
Handle 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 allState
instances, so implementations should be careful that the context is thread-safe, or used in a thread-safe manner.
-