org.lexgrid.loader.reader
Class ListReader<T>
java.lang.Object
org.lexgrid.loader.reader.ListReader<T>
- All Implemented Interfaces:
- org.springframework.batch.item.ItemReader<T>, org.springframework.beans.factory.InitializingBean
public class ListReader<T>
- extends java.lang.Object
- implements org.springframework.batch.item.ItemReader<T>, org.springframework.beans.factory.InitializingBean
The Class ListReader.
- Author:
- Kevin Peterson
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ListReader
public ListReader()
read
public T read()
throws java.lang.Exception,
org.springframework.batch.item.UnexpectedInputException,
org.springframework.batch.item.ParseException
- Specified by:
read
in interface org.springframework.batch.item.ItemReader<T>
- Throws:
java.lang.Exception
org.springframework.batch.item.UnexpectedInputException
org.springframework.batch.item.ParseException
afterPropertiesSet
public void afterPropertiesSet()
throws java.lang.Exception
- Specified by:
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
- Throws:
java.lang.Exception
getList
public java.util.List<T> getList()
- Gets the list.
- Returns:
- the list
setList
public void setList(java.util.List<T> list)
- Sets the list.
- Parameters:
list
- the new list