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