public class CompositeStepExecutionListener extends java.lang.Object implements StepExecutionListener
コンストラクターと説明 |
---|
CompositeStepExecutionListener() |
修飾子と型 | メソッドと説明 |
---|---|
ExitStatus | afterStep(StepExecution stepExecution) 登録されたリスナーを逆の順序で呼び出し、 Ordered を実装するリスナーを考慮して優先順位を付けます。 |
void | beforeStep(StepExecution stepExecution) Ordered を実装するリスナーを考慮し、優先順位を付けて、登録済みのリスナーを順番に呼び出します。 |
void | register(StepExecutionListener stepExecutionListener) 追加のリスナーを登録します。 |
void | setListeners(StepExecutionListener[] listeners) リスナー用のパブリック setter。 |
public void setListeners(StepExecutionListener[] listeners)
listeners
- ステップ実行イベントが発生したときに呼び出される StepExecutionListener
のリスト。public void register(StepExecutionListener stepExecutionListener)
stepExecutionListener
- 登録される StepExecutionListener
のインスタンス。@Nullable public ExitStatus afterStep(StepExecution stepExecution)
Ordered
を実装するリスナーを考慮して優先順位を付けます。StepExecutionListener
の afterStep
stepExecution
- StepExecution
インスタンス。ExitStatus
。null
を返し、古い値を変更せずに残します。StepExecutionListener.afterStep(StepExecution)
public void beforeStep(StepExecution stepExecution)
Ordered
を実装するリスナーを考慮し、優先順位を付けて、登録済みのリスナーを順番に呼び出します。StepExecutionListener
の beforeStep
stepExecution
- StepExecution
のインスタンス。StepExecutionListener.beforeStep(StepExecution)