|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.batch.core.listener.CompositeStepExecutionListener
public class CompositeStepExecutionListener
| Constructor Summary | |
|---|---|
CompositeStepExecutionListener()
|
|
| 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). |
void |
register(StepExecutionListener stepExecutionListener)
Register additional listener. |
void |
setListeners(StepExecutionListener[] listeners)
Public setter for the listeners. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CompositeStepExecutionListener()
| Method Detail |
|---|
public void setListeners(StepExecutionListener[] listeners)
listeners - public void register(StepExecutionListener stepExecutionListener)
stepExecutionListener - public ExitStatus afterStep(StepExecution stepExecution)
StepExecutionListenerExitStatus.and(ExitStatus).
Called after successful execution of step's processing logic. Throwing
exception in this method will cause step to fail.
afterStep in interface StepExecutionListenerExitStatus to combine with the normal value. Return
null to leave the old value unchanged.public void beforeStep(StepExecution stepExecution)
StepExecutionListenerStepExecution from
the current scope.
beforeStep in interface StepExecutionListener
public ExitStatus onErrorInStep(StepExecution stepExecution,
Throwable e)
StepExecutionListenerExitStatus.and(ExitStatus).
onErrorInStep in interface StepExecutionListenere - an exception thrown by the step execution
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||