org.springframework.batch.core.listener
Class JobExecutionListenerSupport

java.lang.Object
  extended by org.springframework.batch.core.listener.JobExecutionListenerSupport
All Implemented Interfaces:
JobExecutionListener

public class JobExecutionListenerSupport
extends Object
implements JobExecutionListener

Author:
Dave Syer

Constructor Summary
JobExecutionListenerSupport()
           
 
Method Summary
 void afterJob(JobExecution jobExecution)
          Callback after successful completion of a job.
 void beforeJob(JobExecution jobExecution)
          Initialise the state of the listener with the JobExecution from the current scope.
 void onError(JobExecution jobExecution, Throwable e)
          Callback on job failure owing to the throwable provided.
 void onInterrupt(JobExecution jobExecution)
          Callback when a job is interrupted or stopped manually.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JobExecutionListenerSupport

public JobExecutionListenerSupport()
Method Detail

afterJob

public void afterJob(JobExecution jobExecution)
Description copied from interface: JobExecutionListener
Callback after successful completion of a job.

Specified by:
afterJob in interface JobExecutionListener
Parameters:
jobExecution - the current JobExecution

beforeJob

public void beforeJob(JobExecution jobExecution)
Description copied from interface: JobExecutionListener
Initialise the state of the listener with the JobExecution from the current scope.

Specified by:
beforeJob in interface JobExecutionListener
Parameters:
jobExecution - the current JobExecution

onError

public void onError(JobExecution jobExecution,
                    Throwable e)
Description copied from interface: JobExecutionListener
Callback on job failure owing to the throwable provided.

Specified by:
onError in interface JobExecutionListener
Parameters:
jobExecution - the current JobExecution
e - the exception that caused the job to terminate

onInterrupt

public void onInterrupt(JobExecution jobExecution)
Description copied from interface: JobExecutionListener
Callback when a job is interrupted or stopped manually.

Specified by:
onInterrupt in interface JobExecutionListener
Parameters:
jobExecution - the current JobExecution


Copyright © 2008 SpringSource. All Rights Reserved.