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