类 CompositeStepExecutionListener
- java.lang.Object
- org.springframework.batch.core.listener.CompositeStepExecutionListener
- 所有已实现的接口:
StepExecutionListener
,StepListener
public class CompositeStepExecutionListener extends java.lang.Object implements StepExecutionListener
- 作者:
- Lucas Ward, Dave Syer
构造器概要
构造器 构造器 说明 CompositeStepExecutionListener()
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 ExitStatus
afterStep(StepExecution stepExecution)
Call the registered listeners in reverse order, respecting and prioritizing those that implementOrdered
.void
beforeStep(StepExecution stepExecution)
Call the registered listeners in order, respecting and prioritizing those that implementOrdered
.void
register(StepExecutionListener stepExecutionListener)
Register additional listener.void
setListeners(StepExecutionListener[] listeners)
Public setter for the listeners.
构造器详细资料
CompositeStepExecutionListener
public CompositeStepExecutionListener()
方法详细资料
setListeners
public void setListeners(StepExecutionListener[] listeners)
Public setter for the listeners.- 参数:
listeners
- list ofStepExecutionListener
s to be called when step execution events occur.
register
public void register(StepExecutionListener stepExecutionListener)
Register additional listener.- 参数:
stepExecutionListener
- instance ofStepExecutionListener
to be registered.
afterStep
public ExitStatus afterStep(StepExecution stepExecution)
Call the registered listeners in reverse order, respecting and prioritizing those that implementOrdered
.- 指定者:
afterStep
在接口中StepExecutionListener
- 参数:
stepExecution
-StepExecution
instance.- 返回:
- an
ExitStatus
to combine with the normal value. Returnnull
to leave the old value unchanged. - 另请参阅:
StepExecutionListener.afterStep(StepExecution)
beforeStep
public void beforeStep(StepExecution stepExecution)
Call the registered listeners in order, respecting and prioritizing those that implementOrdered
.- 指定者:
beforeStep
在接口中StepExecutionListener
- 参数:
stepExecution
- instance ofStepExecution
.- 另请参阅:
StepExecutionListener.beforeStep(StepExecution)