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:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user