public class ListReader<T>
extends java.lang.Object
implements org.springframework.batch.item.ItemReader<T>, org.springframework.beans.factory.InitializingBean
Constructor and Description |
---|
ListReader() |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
java.util.List<T> |
getList()
Gets the list.
|
T |
read() |
void |
setList(java.util.List<T> list)
Sets the list.
|
public T read() throws java.lang.Exception, org.springframework.batch.item.UnexpectedInputException, org.springframework.batch.item.ParseException
read
in interface org.springframework.batch.item.ItemReader<T>
java.lang.Exception
org.springframework.batch.item.UnexpectedInputException
org.springframework.batch.item.ParseException
public void afterPropertiesSet() throws java.lang.Exception
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
java.lang.Exception
public java.util.List<T> getList()
public void setList(java.util.List<T> list)
list
- the new list