public class StepListenerAdapter extends java.lang.Object implements StepExecutionListener
StepListener to
a StepExecutionListener.| Constructor and Description |
|---|
StepListenerAdapter(javax.batch.api.listener.StepListener delegate) |
| Modifier and Type | Method and Description |
|---|---|
ExitStatus |
afterStep(StepExecution stepExecution)
Give a listener a chance to modify the exit status from a step.
|
void |
beforeStep(StepExecution stepExecution)
Initialize the state of the listener with the
StepExecution from
the current scope. |
public StepListenerAdapter(javax.batch.api.listener.StepListener delegate)
delegate - instance of StepListener.public void beforeStep(StepExecution stepExecution)
StepExecutionListenerStepExecution from
the current scope.beforeStep in interface StepExecutionListenerstepExecution - instance of StepExecution.public ExitStatus afterStep(StepExecution stepExecution)
StepExecutionListenerExitStatus.and(ExitStatus).
Called after execution of step's processing logic (both successful or
failed). Throwing exception in this method has no effect, it will only be
logged.afterStep in interface StepExecutionListenerstepExecution - StepExecution instance.ExitStatus to combine with the normal value. Return
null to leave the old value unchanged.