类 JobListenerAdapter
- java.lang.Object
- org.springframework.batch.core.jsr.JobListenerAdapter
- 所有已实现的接口:
JobExecutionListener
public class JobListenerAdapter extends java.lang.Object implements JobExecutionListener
Wrapper class to adapt theJobListener
to aJobExecutionListener
.- 从以下版本开始:
- 3.0
- 作者:
- Michael Minella
构造器概要
构造器 构造器 说明 JobListenerAdapter(javax.batch.api.listener.JobListener delegate)
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 void
afterJob(JobExecution jobExecution)
Callback after completion of a job.void
beforeJob(JobExecution jobExecution)
Callback before a job executes.
构造器详细资料
JobListenerAdapter
public JobListenerAdapter(javax.batch.api.listener.JobListener delegate)
- 参数:
delegate
- to be delegated to
方法详细资料
beforeJob
public void beforeJob(JobExecution jobExecution)
从接口复制的说明:JobExecutionListener
Callback before a job executes.- 指定者:
beforeJob
在接口中JobExecutionListener
- 参数:
jobExecution
- the currentJobExecution
afterJob
public void afterJob(JobExecution jobExecution)
从接口复制的说明:JobExecutionListener
Callback after completion of a job. Called after both both successful and failed executions. To perform logic on a particular status, use "if (jobExecution.getStatus() == BatchStatus.X)".- 指定者:
afterJob
在接口中JobExecutionListener
- 参数:
jobExecution
- the currentJobExecution