Class CompositeJobListener

  • All Implemented Interfaces:
    JobListener

    public class CompositeJobListener
    extends java.lang.Object
    implements JobListener
    Composite listener that delegates processing to other listeners.
    Author:
    Mahmoud Ben Hassine ([email protected])
    • Method Detail

      • beforeJob

        public void beforeJob​(JobParameters jobParameters)
        Description copied from interface: JobListener
        Called before starting the job.
        Specified by:
        beforeJob in interface JobListener
        Parameters:
        jobParameters - the job parameters
      • afterJob

        public void afterJob​(JobReport jobReport)
        Description copied from interface: JobListener
        Called after the job is finished (successfully or with a failure).
        Specified by:
        afterJob in interface JobListener
        Parameters:
        jobReport - The job execution report
      • addJobListener

        public void addJobListener​(JobListener jobListener)
        Add a delegate listener.
        Parameters:
        jobListener - to add