クラス JobParameterExecutionContextCopyListener

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

public class JobParameterExecutionContextCopyListener extends ObjectSE implements StepExecutionListener
このクラスを使用して、アイテムを JobParameters から Step ExecutionContext に自動的にコピーできます。コピーする必要がある Step ExecutionContext の項目に対応するキーのリストを提供する必要があります。
導入:
2.0
作成者:
Dave Syer, Mahmoud Ben Hassine
  • コンストラクターの詳細

    • JobParameterExecutionContextCopyListener

      public JobParameterExecutionContextCopyListener()
  • メソッドの詳細

    • setKeys

      public void setKeys(StringSE[] keys)
      パラメーター:
      keys - コピーする必要がある JobParameters の項目に対応するキーのリスト。
    • beforeStep

      public void beforeStep(StepExecution stepExecution)
      まだ存在しない場合は、属性を JobParameters から Step ExecutionContext にコピーします。キーはすでに存在しており、再起動が実行中であり、前の値が必要であると想定しています。提供されたキーが空の場合、デフォルトでは JobParameters のすべてのキーがコピーされます。
      次で指定:
      インターフェース StepExecutionListenerbeforeStep 
      パラメーター:
      stepExecution - StepExecution のインスタンス。