BATCH-1125: Modified NoWorkFoundStepExecutionListener so that it will fail the step. Removed unused NoWorkFoundException.

This commit is contained in:
dhgarrette
2009-03-06 23:51:53 +00:00
parent dee9420cda
commit 78c88afce0
6 changed files with 38 additions and 78 deletions

View File

@@ -17,21 +17,19 @@
package org.springframework.batch.sample.common;
import org.springframework.batch.item.ItemReader;
import org.springframework.batch.item.NoWorkFoundException;
import org.springframework.batch.item.ParseException;
import org.springframework.batch.item.UnexpectedInputException;
/**
* ItemReader implementation that will continually return a new object. It's generally
* useful for testing interruption.
* ItemReader implementation that will continually return a new object. It's
* generally useful for testing interruption.
*
* @author Lucas Ward
*
*
*/
public class InfiniteLoopReader implements ItemReader<Object> {
public Object read() throws Exception, UnexpectedInputException,
NoWorkFoundException, ParseException {
public Object read() throws Exception, UnexpectedInputException, ParseException {
return new Object();
}