Class StepExecutionListenerSupport
java.lang.Object
org.springframework.batch.core.listener.StepExecutionListenerSupport
- All Implemented Interfaces:
StepExecutionListener
,StepListener
@Deprecated
public class StepExecutionListenerSupport
extends Object
implements StepExecutionListener
Deprecated.
- Author:
- Dave Syer
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionafterStep
(StepExecution stepExecution) Deprecated.Give a listener a chance to modify the exit status from a step.void
beforeStep
(StepExecution stepExecution) Deprecated.Initialize the state of the listener with theStepExecution
from the current scope.
-
Constructor Details
-
StepExecutionListenerSupport
public StepExecutionListenerSupport()Deprecated.
-
-
Method Details
-
afterStep
Deprecated.Description copied from interface:StepExecutionListener
Give a listener a chance to modify the exit status from a step. The value returned is combined with the normal exit status by usingExitStatus.and(ExitStatus)
.Called after execution of the step's processing logic (whether successful or failed). Throwing an exception in this method has no effect, as it is only logged.
- Specified by:
afterStep
in interfaceStepExecutionListener
- Parameters:
stepExecution
- aStepExecution
instance.- Returns:
- an
ExitStatus
to combine with the normal value. Returnnull
(the default) to leave the old value unchanged.
-
beforeStep
Deprecated.Description copied from interface:StepExecutionListener
Initialize the state of the listener with theStepExecution
from the current scope.- Specified by:
beforeStep
in interfaceStepExecutionListener
- Parameters:
stepExecution
- instance ofStepExecution
.
-
StepExecutionListener