org.apache.camel.component.spring.batch.support
Class CamelItemProcessor<I,O>

java.lang.Object
  extended by org.apache.camel.component.spring.batch.support.CamelItemProcessor<I,O>
All Implemented Interfaces:
org.springframework.batch.item.ItemProcessor<I,O>

public class CamelItemProcessor<I,O>
extends Object
implements org.springframework.batch.item.ItemProcessor<I,O>

Spring Batch ItemProcessor sending synchronous request to the given Camel endpoint. The actual processing of the item is delegated to the Camel routes.


Constructor Summary
CamelItemProcessor(org.apache.camel.ProducerTemplate producerTemplate, String endpointUri)
           
 
Method Summary
 O process(I i)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CamelItemProcessor

public CamelItemProcessor(org.apache.camel.ProducerTemplate producerTemplate,
                          String endpointUri)
Method Detail

process

public O process(I i)
          throws Exception
Specified by:
process in interface org.springframework.batch.item.ItemProcessor<I,O>
Throws:
Exception


Apache Camel