org.apache.camel.component.spring.batch.support
Class CamelItemReader<I>

java.lang.Object
  extended by org.apache.camel.support.ServiceSupport
      extended by org.apache.camel.component.spring.batch.support.CamelItemReader<I>
All Implemented Interfaces:
org.apache.camel.Service, org.apache.camel.ShutdownableService, org.apache.camel.StatefulService, org.apache.camel.SuspendableService, org.springframework.batch.item.ItemReader<I>, org.springframework.beans.factory.InitializingBean

public class CamelItemReader<I>
extends org.apache.camel.support.ServiceSupport
implements org.springframework.batch.item.ItemReader<I>, org.springframework.beans.factory.InitializingBean


Field Summary
 
Fields inherited from class org.apache.camel.support.ServiceSupport
shutdown, shuttingdown, started, starting, stopped, stopping, suspended, suspending
 
Constructor Summary
CamelItemReader(org.apache.camel.ConsumerTemplate consumerTemplate, String endpointUri)
           
 
Method Summary
 void afterPropertiesSet()
           
protected  void doStart()
           
protected  void doStop()
           
 I read()
           
 
Methods inherited from class org.apache.camel.support.ServiceSupport
doResume, doShutdown, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, resume, shutdown, start, stop, suspend
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CamelItemReader

public CamelItemReader(org.apache.camel.ConsumerTemplate consumerTemplate,
                       String endpointUri)
Method Detail

afterPropertiesSet

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

read

public I read()
       throws Exception
Specified by:
read in interface org.springframework.batch.item.ItemReader<I>
Throws:
Exception

doStart

protected void doStart()
                throws Exception
Specified by:
doStart in class org.apache.camel.support.ServiceSupport
Throws:
Exception

doStop

protected void doStop()
               throws Exception
Specified by:
doStop in class org.apache.camel.support.ServiceSupport
Throws:
Exception


Apache Camel