クラス StepExecutionListenerSupport

java.lang.ObjectSE
org.springframework.batch.core.listener.StepExecutionListenerSupport
実装されたすべてのインターフェース:
StepExecutionListenerStepListener

@DeprecatedSE public class StepExecutionListenerSupport extends ObjectSE implements StepExecutionListener
使用すべきではありません。
5.0 の時点で、StepExecutionListener のデフォルトの方法を優先
作成者:
Dave Syer
  • コンストラクターの詳細

    • StepExecutionListenerSupport

      public StepExecutionListenerSupport()
      使用すべきではありません。
  • メソッドの詳細

    • afterStep

      @Nullable public ExitStatus afterStep(StepExecution stepExecution)
      使用すべきではありません。
      インターフェースからコピーされた説明: StepExecutionListener
      リスナーにステップの終了ステータスを変更する機会を与えます。返された値は、ExitStatus.and(ExitStatus) を使用して通常の終了ステータスと結合されます。

      ステップの処理ロジックの実行後に (成功または失敗に関係なく) 呼び出されます。このメソッドで例外をスローしても、ログに記録されるだけなので効果はありません。

      次で指定:
      インターフェース StepExecutionListenerafterStep 
      パラメーター:
      stepExecution - StepExecution インスタンス。
      戻り値:
      通常の値と組み合わせる ExitStatus。古い値を変更しない場合は、null (デフォルト) を返します。
    • beforeStep

      public void beforeStep(StepExecution stepExecution)
      使用すべきではありません。
      インターフェースからコピーされた説明: StepExecutionListener
      現在のスコープの StepExecution を使用して、リスナーの状態を初期化します。
      次で指定:
      インターフェース StepExecutionListenerbeforeStep 
      パラメーター:
      stepExecution - StepExecution のインスタンス。