|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.batch.core.listener.CompositeExecutionJobListener
public class CompositeExecutionJobListener
Constructor Summary | |
---|---|
CompositeExecutionJobListener()
|
Method Summary | |
---|---|
void |
afterJob(JobExecution jobExecution)
Call the registered listeners in reverse order, respecting and prioritising those that implement Ordered . |
void |
beforeJob(JobExecution jobExecution)
Call the registered listeners in order, respecting and prioritising those that implement Ordered . |
void |
onError(JobExecution jobExecution,
Throwable e)
Call the registered listeners in reverse order, respecting and prioritising those that implement Ordered . |
void |
onInterrupt(JobExecution jobExecution)
Call the registered listeners in reverse order, respecting and prioritising those that implement Ordered . |
void |
register(JobExecutionListener jobExecutionListener)
Register additional listener. |
void |
setListeners(JobExecutionListener[] listeners)
Public setter for the listeners. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CompositeExecutionJobListener()
Method Detail |
---|
public void setListeners(JobExecutionListener[] listeners)
listeners
- public void register(JobExecutionListener jobExecutionListener)
jobExecutionListener
- public void afterJob(JobExecution jobExecution)
Ordered
.
afterJob
in interface JobExecutionListener
jobExecution
- the current JobExecution
JobExecutionListener.afterJob(org.springframework.batch.core.JobExecution)
public void beforeJob(JobExecution jobExecution)
Ordered
.
beforeJob
in interface JobExecutionListener
jobExecution
- the current JobExecution
JobExecutionListener.beforeJob(org.springframework.batch.core.JobExecution)
public void onError(JobExecution jobExecution, Throwable e)
Ordered
.
onError
in interface JobExecutionListener
jobExecution
- the current JobExecution
e
- the exception that caused the job to terminateJobExecutionListener.onError(org.springframework.batch.core.JobExecution,
java.lang.Throwable)
public void onInterrupt(JobExecution jobExecution)
Ordered
.
onInterrupt
in interface JobExecutionListener
jobExecution
- the current JobExecution
JobExecutionListener.onInterrupt(org.springframework.batch.core.JobExecution)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |