org.apache.camel.spring.javaconfig
Class SingleRouteCamelConfiguration

java.lang.Object
  extended by org.apache.camel.spring.javaconfig.CamelConfiguration
      extended by org.apache.camel.spring.javaconfig.SingleRouteCamelConfiguration
All Implemented Interfaces:
org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanFactoryAware, org.springframework.context.ApplicationContextAware

public abstract class SingleRouteCamelConfiguration
extends CamelConfiguration

A useful base class for writing Spring annotation-based configurations to configure a CamelContext with a single RouteBuilder instance.


Constructor Summary
SingleRouteCamelConfiguration()
           
 
Method Summary
abstract  org.apache.camel.builder.RouteBuilder route()
          Creates the single RouteBuilder to use in this configuration
 List<org.apache.camel.builder.RouteBuilder> routes()
          Returns the list of routes to use in this configuration.
 
Methods inherited from class org.apache.camel.spring.javaconfig.CamelConfiguration
camelBeanPostProcessor, camelContext, createCamelContext, getApplicationContext, getBean, getBean, getBean, getBeanFactory, getConfigured, setApplicationContext, setBeanFactory, setupCamelContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SingleRouteCamelConfiguration

public SingleRouteCamelConfiguration()
Method Detail

routes

@Bean
public List<org.apache.camel.builder.RouteBuilder> routes()
Description copied from class: CamelConfiguration
Returns the list of routes to use in this configuration. By default autowires all RouteBuilder instances available in the ApplicationContext.

Overrides:
routes in class CamelConfiguration

route

public abstract org.apache.camel.builder.RouteBuilder route()
Creates the single RouteBuilder to use in this configuration



Apache Camel