Class EventEmittingJobExecutionListener

java.lang.Object
org.springframework.cloud.task.batch.listener.EventEmittingJobExecutionListener
All Implemented Interfaces:
org.springframework.batch.core.JobExecutionListener, org.springframework.core.Ordered

public class EventEmittingJobExecutionListener extends Object implements org.springframework.batch.core.JobExecutionListener, org.springframework.core.Ordered
Provides JobExecutionEvent at both the start and end of the job's execution.
Author:
Michael Minella, Glenn Renfro, Ali Shahbour
  • Constructor Details

  • Method Details

    • beforeJob

      public void beforeJob(org.springframework.batch.core.JobExecution jobExecution)
      Specified by:
      beforeJob in interface org.springframework.batch.core.JobExecutionListener
    • afterJob

      public void afterJob(org.springframework.batch.core.JobExecution jobExecution)
      Specified by:
      afterJob in interface org.springframework.batch.core.JobExecutionListener
    • getOrder

      public int getOrder()
      Specified by:
      getOrder in interface org.springframework.core.Ordered