org.lexgrid.loader.reader
Class ListReader<T>

java.lang.Object
  extended by 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

Constructor Summary
ListReader()
           
 
Method Summary
 void afterPropertiesSet()
           
 java.util.List<T> getList()
          Gets the list.
 T read()
           
 void setList(java.util.List<T> list)
          Sets the list.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ListReader

public ListReader()
Method Detail

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

Copyright: (c) 2004-2006 Mayo Foundation for Medical Education and Research (MFMER). All rights reserved. MAYO, MAYO CLINIC, and the triple-shield Mayo logo are trademarks and service marks of MFMER.