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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionafterStep(StepExecution stepExecution) Deprecated.Give a listener a chance to modify the exit status from a step.voidbeforeStep(StepExecution stepExecution) Deprecated.Initialize the state of the listener with theStepExecutionfrom the current scope.
-
Constructor Details
-
StepExecutionListenerSupport
public StepExecutionListenerSupport()Deprecated.
-
-
Method Details
-
afterStep
Deprecated.Description copied from interface:StepExecutionListenerGive 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:
afterStepin interfaceStepExecutionListener- Parameters:
stepExecution- aStepExecutioninstance.- Returns:
- an
ExitStatusto combine with the normal value. Returnnull(the default) to leave the old value unchanged.
-
beforeStep
Deprecated.Description copied from interface:StepExecutionListenerInitialize the state of the listener with theStepExecutionfrom the current scope.- Specified by:
beforeStepin interfaceStepExecutionListener- Parameters:
stepExecution- instance ofStepExecution.
-
StepExecutionListener