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.BeanFactoryAware, org.springframework.context.ApplicationContextAware
Direct Known Subclasses:
MyRouteConfig

public abstract class SingleRouteCamelConfiguration
extends CamelConfiguration

A useful base class for writing Spring JavaConfig configurations to configure a CamelContext with a single RouteBuilder instance

Version:

Constructor Summary
SingleRouteCamelConfiguration()
           
 
Method Summary
abstract  RouteBuilder route()
          Creates the single RouteBuilder to use in this configuration
 List<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<RouteBuilder> routes()
Description copied from class: CamelConfiguration
Returns the list of routes to use in this configuration

Specified by:
routes in class CamelConfiguration

route

public abstract RouteBuilder route()
Creates the single RouteBuilder to use in this configuration



Apache CAMEL