RESOLVED - issue BATCH-419: JobListener and StepListener should pass in JobExecution/StepExecution in each method
http://jira.springframework.org/browse/BATCH-419 added the StepExecution argument to StepListener#onErrorInStep method OPEN - issue BATCH-329: Make "VERSION" meaningful? http://jira.springframework.org/browse/BATCH-329 MapStepExecutionDao now handles version similarly to JdbcStepExecutionDao
This commit is contained in:
@@ -38,9 +38,10 @@ public interface StepListener extends BatchListener {
|
||||
* {@link ExitStatus#and(ExitStatus)}.
|
||||
*
|
||||
* @param e an exception thrown by the step execution
|
||||
*
|
||||
* @return an exit status to be combined with the normal one, or null
|
||||
*/
|
||||
ExitStatus onErrorInStep(Throwable e);
|
||||
ExitStatus onErrorInStep(StepExecution stepExecution, Throwable e);
|
||||
|
||||
/**
|
||||
* Give a listener a chance to modify the exit status from a step. The value
|
||||
|
||||
@@ -48,7 +48,7 @@ public class BatchListenerSupport implements StepListener, ChunkListener,
|
||||
/* (non-Javadoc)
|
||||
* @see org.springframework.batch.core.domain.StepListener#onErrorInStep(java.lang.Throwable)
|
||||
*/
|
||||
public ExitStatus onErrorInStep(Throwable e) {
|
||||
public ExitStatus onErrorInStep(StepExecution stepExecution, Throwable e) {
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
@@ -41,7 +41,7 @@ public class StepListenerSupport implements StepListener {
|
||||
/* (non-Javadoc)
|
||||
* @see org.springframework.batch.core.domain.StepListener#onError(java.lang.Throwable)
|
||||
*/
|
||||
public ExitStatus onErrorInStep(Throwable e) {
|
||||
public ExitStatus onErrorInStep(StepExecution stepExecution, Throwable e) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user