类 CompositeJobExecutionListener
- java.lang.Object
- org.springframework.batch.core.listener.CompositeJobExecutionListener
- 所有已实现的接口:
JobExecutionListener
public class CompositeJobExecutionListener extends java.lang.Object implements JobExecutionListener
- 作者:
- Dave Syer
构造器概要
构造器 构造器 说明 CompositeJobExecutionListener()
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 void
afterJob(JobExecution jobExecution)
Call the registered listeners in reverse order, respecting and prioritising those that implementOrdered
.void
beforeJob(JobExecution jobExecution)
Call the registered listeners in order, respecting and prioritising those that implementOrdered
.void
register(JobExecutionListener jobExecutionListener)
Register additional listener.void
setListeners(java.util.List<? extends JobExecutionListener> listeners)
Public setter for the listeners.
构造器详细资料
CompositeJobExecutionListener
public CompositeJobExecutionListener()
方法详细资料
setListeners
public void setListeners(java.util.List<? extends JobExecutionListener> listeners)
Public setter for the listeners.- 参数:
listeners
- list ofJobExecutionListener
s to be called when job execution events occur.
register
public void register(JobExecutionListener jobExecutionListener)
Register additional listener.- 参数:
jobExecutionListener
- instanceJobExecutionListener
to be registered.
afterJob
public void afterJob(JobExecution jobExecution)
Call the registered listeners in reverse order, respecting and prioritising those that implementOrdered
.- 指定者:
afterJob
在接口中JobExecutionListener
- 参数:
jobExecution
- the currentJobExecution
- 另请参阅:
JobExecutionListener.afterJob(org.springframework.batch.core.JobExecution)
beforeJob
public void beforeJob(JobExecution jobExecution)
Call the registered listeners in order, respecting and prioritising those that implementOrdered
.- 指定者:
beforeJob
在接口中JobExecutionListener
- 参数:
jobExecution
- the currentJobExecution
- 另请参阅:
JobExecutionListener.beforeJob(org.springframework.batch.core.JobExecution)