public interface StepExecutionListener extends StepListener
Step
のライフサイクルのリスナーインターフェース。修飾子と型 | メソッドと説明 |
---|---|
ExitStatus | afterStep(StepExecution stepExecution) リスナーにステップの終了ステータスを変更する機会を与えます。 |
void | beforeStep(StepExecution stepExecution) 現在のスコープの StepExecution を使用して、リスナーの状態を初期化します。 |
void beforeStep(StepExecution stepExecution)
StepExecution
を使用して、リスナーの状態を初期化します。stepExecution
- StepExecution
のインスタンス。@Nullable ExitStatus afterStep(StepExecution stepExecution)
ExitStatus.and(ExitStatus)
を使用して通常の終了ステータスと結合されます。ステップの処理ロジックの実行後に呼び出されます(成功または失敗の両方)。このメソッドで例外をスローしても効果はなく、ログに記録されるだけです。stepExecution
- StepExecution
インスタンス。ExitStatus
。null
を返し、古い値を変更せずに残します。