RESOLVED - BATCH-660: SimpleStepFactoryBean#setExceptionHandler() not working

This commit is contained in:
robokaso
2008-06-11 08:51:45 +00:00
parent 4f3294d127
commit 40594d75e7
2 changed files with 29 additions and 2 deletions

View File

@@ -139,7 +139,7 @@ public class SimpleStepFactoryBean extends AbstractStepFactoryBean {
}
/**
* Public setter for the SimpleLimitExceptionHandler.
* Public setter for the {@link ExceptionHandler}.
* @param exceptionHandler the exceptionHandler to set
*/
public void setExceptionHandler(ExceptionHandler exceptionHandler) {
@@ -233,6 +233,8 @@ public class SimpleStepFactoryBean extends AbstractStepFactoryBean {
repeatTemplate.setTaskExecutor(taskExecutor);
stepOperations = repeatTemplate;
}
stepOperations.setExceptionHandler(exceptionHandler);
step.setStepOperations(stepOperations);