类 StepListenerAdapter
- java.lang.Object
- org.springframework.batch.core.jsr.StepListenerAdapter
- 所有已实现的接口:
StepExecutionListener
,StepListener
public class StepListenerAdapter extends java.lang.Object implements StepExecutionListener
Wrapper class to adapt theStepListener
to aStepExecutionListener
.- 从以下版本开始:
- 3.0
- 作者:
- Michael Minella
构造器概要
构造器 构造器 说明 StepListenerAdapter(javax.batch.api.listener.StepListener delegate)
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 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 theStepExecution
from the current scope.
构造器详细资料
StepListenerAdapter
public StepListenerAdapter(javax.batch.api.listener.StepListener delegate)
- 参数:
delegate
- instance ofStepListener
.
方法详细资料
beforeStep
public void beforeStep(StepExecution stepExecution)
从接口复制的说明:StepExecutionListener
Initialize the state of the listener with theStepExecution
from the current scope.- 指定者:
beforeStep
在接口中StepExecutionListener
- 参数:
stepExecution
- instance ofStepExecution
.
afterStep
public ExitStatus afterStep(StepExecution stepExecution)
从接口复制的说明:StepExecutionListener
Give a listener a chance to modify the exit status from a step. The value returned will be combined with the normal exit status usingExitStatus.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
在接口中StepExecutionListener
- 参数:
stepExecution
-StepExecution
instance.- 返回:
- an
ExitStatus
to combine with the normal value. Returnnull
to leave the old value unchanged.