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

java.lang.Object
  extended by org.lexgrid.loader.reader.FactoryBeanReader<T>
All Implemented Interfaces:
org.springframework.beans.factory.FactoryBean, org.springframework.beans.factory.InitializingBean

public class FactoryBeanReader<T>
extends java.lang.Object
implements org.springframework.beans.factory.FactoryBean, org.springframework.beans.factory.InitializingBean

The Class FactoryBeanReader.

Author:
Kevin Peterson

Constructor Summary
FactoryBeanReader()
           
 
Method Summary
 void afterPropertiesSet()
           
 org.springframework.batch.item.ItemReader<T> getDelegate()
          Gets the delegate.
 java.lang.Object getObject()
           
 java.lang.Class getObjectType()
           
 SkipPolicy<T> getSkipPolicy()
          Gets the skip policy.
 boolean isSingleton()
           
 void setDelegate(org.springframework.batch.item.ItemReader<T> delegate)
          Sets the delegate.
 void setSkipPolicy(SkipPolicy<T> skipPolicy)
          Sets the skip policy.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FactoryBeanReader

public FactoryBeanReader()
Method Detail

afterPropertiesSet

public void afterPropertiesSet()
                        throws java.lang.Exception
Specified by:
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
Throws:
java.lang.Exception

getObject

public java.lang.Object getObject()
                           throws java.lang.Exception
Specified by:
getObject in interface org.springframework.beans.factory.FactoryBean
Throws:
java.lang.Exception

getObjectType

public java.lang.Class getObjectType()
Specified by:
getObjectType in interface org.springframework.beans.factory.FactoryBean

isSingleton

public boolean isSingleton()
Specified by:
isSingleton in interface org.springframework.beans.factory.FactoryBean

getDelegate

public org.springframework.batch.item.ItemReader<T> getDelegate()
Gets the delegate.

Returns:
the delegate

setDelegate

public void setDelegate(org.springframework.batch.item.ItemReader<T> delegate)
Sets the delegate.

Parameters:
delegate - the new delegate

getSkipPolicy

public SkipPolicy<T> getSkipPolicy()
Gets the skip policy.

Returns:
the skip policy

setSkipPolicy

public void setSkipPolicy(SkipPolicy<T> skipPolicy)
Sets the skip policy.

Parameters:
skipPolicy - the new skip policy

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.