BATCH-1125: Modified NoWorkFoundStepExecutionListener so that it will fail the step. Removed unused NoWorkFoundException.
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user