OPEN - issue BATCH-404: FactoryBeans for step configuration

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

New flag on DefaultStepFactoryBean for item skip policy (alwaysSkip=false is the default).
This commit is contained in:
dsyer
2008-03-02 12:04:12 +00:00
parent df0c615ff8
commit 108c21b187
4 changed files with 60 additions and 43 deletions

View File

@@ -45,14 +45,22 @@ public class SimpleLimitExceptionHandler implements ExceptionHandler {
* Set this flag to true if you want to count exceptions for the whole
* (outer) loop in a typical container.
*
* @param useParent
* true if the parent context should be used to store the
* counters.
* @param useParent true if the parent context should be used to store the
* counters.
*/
public void setUseParent(boolean useParent) {
delegate.setUseParent(useParent);
}
/**
* Convenience constructor for the {@link SimpleLimitExceptionHandler} to
* set the limit.
*/
public SimpleLimitExceptionHandler(int limit) {
this();
setLimit(limit);
}
/**
* Default constructor for the {@link SimpleLimitExceptionHandler}.
*/
@@ -76,10 +84,9 @@ public class SimpleLimitExceptionHandler implements ExceptionHandler {
* @see #setLimit(int)
*
* @see org.springframework.batch.repeat.exception.handler.ExceptionHandler#handleException(org.springframework.batch.repeat.RepeatContext,
* Throwable)
* Throwable)
*/
public void handleException(RepeatContext context, Throwable throwable)
throws RuntimeException {
public void handleException(RepeatContext context, Throwable throwable) throws RuntimeException {
delegate.handleException(context, throwable);
}