org.apache.camel.spring.javaconfig
Class CamelConfiguration

java.lang.Object
  extended by org.springframework.config.java.support.ConfigurationSupport
      extended by org.apache.camel.spring.javaconfig.CamelConfiguration
All Implemented Interfaces:
org.springframework.beans.factory.BeanFactoryAware, org.springframework.context.ApplicationContextAware
Direct Known Subclasses:
SingleRouteCamelConfiguration

@Configuration
public abstract class CamelConfiguration
extends org.springframework.config.java.support.ConfigurationSupport

A useful base class for writing Spring JavaConfig configurations for working with Camel

Version:
$Revision: 758543 $

Constructor Summary
CamelConfiguration()
           
 
Method Summary
 CamelBeanPostProcessor camelBeanPostProcessor()
           
 CamelContext camelContext()
          Returns the CamelContext
abstract  List<RouteBuilder> routes()
          Returns the list of routes to use in this configuration
 void setupCamelContext(CamelContext camelContext)
           
 
Methods inherited from class org.springframework.config.java.support.ConfigurationSupport
getApplicationContext, getBean, getBean, getBean, getBeanFactory, getConfigured, getObject, getObject, setApplicationContext, setBeanFactory
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CamelConfiguration

public CamelConfiguration()
Method Detail

camelBeanPostProcessor

@Bean
public CamelBeanPostProcessor camelBeanPostProcessor()
                                              throws Exception
Throws:
Exception

camelContext

@Bean
public CamelContext camelContext()
                          throws Exception
Returns the CamelContext

Throws:
Exception

setupCamelContext

public void setupCamelContext(CamelContext camelContext)
                       throws Exception
Throws:
Exception

routes

public abstract List<RouteBuilder> routes()
Returns the list of routes to use in this configuration



Copyright © 2009 Apache Software Foundation. All Rights Reserved.