ProcessorFactoryPage added by Claus IbsenProcessorFactoryAvailable as of Camel 2.4 There is a org.apache.camel.spi.ProcessorFactory which allows you to use a custom factory for creating Processor based on the Camel routes. ExampleHere is a custom factory which will alter the processor definitions. e3 The route is as follows e2 Now the idea is that the setBody processors has been changed by the factory to set a different body. Java DSLIn Java DSL all you need to do is to configure the custom factory on the CamelContext as shown: e1 Spring XMLIn Spring XML all you have to do is just to declare a <bean> tag with the custom factory, and Camel will automatic lookup it up and use it. e1
Change Notification Preferences
View Online
|
Add Comment
|
- [CONF] Apache Camel > ProcessorFactory confluence
- [CONF] Apache Camel > ProcessorFactory confluence
- [CONF] Apache Camel > ProcessorFactory confluence
