|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface StepExecutionListener
Listener interface for the lifecycle of a Step
.
Method Summary | |
---|---|
ExitStatus |
afterStep(StepExecution stepExecution)
Give a listener a chance to modify the exit status from a step. |
void |
beforeStep(StepExecution stepExecution)
Initialise the state of the listener with the StepExecution from
the current scope. |
ExitStatus |
onErrorInStep(StepExecution stepExecution,
Throwable e)
The value returned will be combined with the normal exit status using ExitStatus.and(ExitStatus) . |
Method Detail |
---|
void beforeStep(StepExecution stepExecution)
StepExecution
from
the current scope.
stepExecution
- ExitStatus onErrorInStep(StepExecution stepExecution, Throwable e)
ExitStatus.and(ExitStatus)
.
e
- an exception thrown by the step execution
ExitStatus afterStep(StepExecution stepExecution)
ExitStatus.and(ExitStatus)
.
Called after successful execution of step's processing logic. Throwing
exception in this method will cause step to fail.
ExitStatus
to combine with the normal value. Return
null to leave the old value unchanged.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |