|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.batch.core.job.flow.support.state.AbstractState
public abstract class AbstractState
| Constructor Summary | |
|---|---|
AbstractState(java.lang.String name)
|
|
| Method Summary | |
|---|---|
java.lang.String |
getName()
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 next State. |
java.lang.String |
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 Detail |
|---|
public AbstractState(java.lang.String name)
| Method Detail |
|---|
public java.lang.String getName()
State
getName in interface Statepublic java.lang.String toString()
toString in class java.lang.Object
public abstract FlowExecutionStatus handle(FlowExecutor executor)
throws java.lang.Exception
StateState. The status can be any
string, but special meaning is assigned to the static constants in
FlowExecution. The context can be used by implementations to do
whatever they need to do. The same context will be passed to all
State instances, so implementations should be careful that the
context is thread safe, or used in a thread safe manner.
handle in interface Stateexecutor - the context passed in by the caller
java.lang.Exception - if anything goes wrong
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||