IN PROGRESS - issue BATCH-419: JobListener and StepListener should pass in JobExecution/StepExecution in each method

http://jira.springframework.org/browse/BATCH-419

added StepExecution argument to StepListener#afterStep
This commit is contained in:
robokaso
2008-03-06 14:25:09 +00:00
parent 97de346c69
commit e20a250e14
12 changed files with 24 additions and 24 deletions

View File

@@ -50,5 +50,5 @@ public interface StepListener extends BatchListener {
* @return an {@link ExitStatus} to combine with the normal value. Return
* null to leave the old value unchanged.
*/
ExitStatus afterStep();
ExitStatus afterStep(StepExecution stepExecution);
}

View File

@@ -33,9 +33,9 @@ public class BatchListenerSupport implements StepListener, ChunkListener,
ItemReadListener, ItemWriteListener {
/* (non-Javadoc)
* @see org.springframework.batch.core.domain.StepListener#afterStep()
* @see org.springframework.batch.core.domain.StepListener#afterStep(StepExecution stepExecution)
*/
public ExitStatus afterStep() {
public ExitStatus afterStep(StepExecution stepExecution) {
return null;
}

View File

@@ -26,9 +26,9 @@ import org.springframework.batch.repeat.ExitStatus;
public class StepListenerSupport implements StepListener {
/* (non-Javadoc)
* @see org.springframework.batch.core.domain.StepListener#close()
* @see org.springframework.batch.core.domain.StepListener#afterStep(StepExecution stepExecution)
*/
public ExitStatus afterStep() {
public ExitStatus afterStep(StepExecution stepExecution) {
return null;
}