- All Implemented Interfaces:
public class ListItemReader<T>
- extends Object
- implements ItemReader<T>
ItemReader that pulls data from a list. Useful for testing.
- Dave Syer
Reads a piece of input data and advance to the next one.
|Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public ListItemReader(List<T> list)
public T read()
- Description copied from interface:
- Reads a piece of input data and advance to the next one. Implementations
null at the end of the input
data set. In a transactional setting, caller might get the same item
twice from successive calls (or otherwise), if the first call was in a
transaction that rolled back.
- Specified by:
read in interface
Copyright © 2013 SpringSource. All Rights Reserved.