From 0660b7ed59aaabab3dc482a1c262bd3a8b2023fc Mon Sep 17 00:00:00 2001 From: dhgarrette Date: Wed, 1 Apr 2009 16:40:05 +0000 Subject: [PATCH] Updated javadocs with more information. --- .../springframework/batch/core/JobExecutionListener.java | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/spring-batch-core/src/main/java/org/springframework/batch/core/JobExecutionListener.java b/spring-batch-core/src/main/java/org/springframework/batch/core/JobExecutionListener.java index 2619a2542..ab98c4919 100644 --- a/spring-batch-core/src/main/java/org/springframework/batch/core/JobExecutionListener.java +++ b/spring-batch-core/src/main/java/org/springframework/batch/core/JobExecutionListener.java @@ -27,14 +27,17 @@ package org.springframework.batch.core; public interface JobExecutionListener { /** - * Initialise the state of the listener with the {@link JobExecution} from - * the current scope. + * Callback before a job executes. + * * @param jobExecution the current {@link JobExecution} */ void beforeJob(JobExecution jobExecution); /** - * Callback after completion of a job, both successful and failed. + * Callback after completion of a job. Called after both both successful and + * failed executions. To perform logic on a particular status, use + * "if (jobExecution.getStatus() == BatchStatus.X)". + * * @param jobExecution the current {@link JobExecution} */ void afterJob(JobExecution jobExecution);