Class SingleRouteCamelConfiguration
- java.lang.Object
-
- org.apache.camel.spring.javaconfig.CamelConfiguration
-
- 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 aCamelContextwith a singleRouteBuilderinstance. You may want to use Spring'sComponentannotation and mark your CamelRouteBuilderclasses using this annotation and have it automatic discovered, if you are using Spring's annotation scanner.
-
-
Constructor Summary
Constructors Constructor Description SingleRouteCamelConfiguration()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract org.apache.camel.builder.RouteBuilderroute()Creates the singleRouteBuilderto use in this configurationList<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, consumerTemplate, createCamelContext, getApplicationContext, getBean, getBean, getBean, getBeanFactory, getConfigured, producerTemplate, setApplicationContext, setBeanFactory, setupCamelContext
-
-
-
-
Method Detail
-
routes
@Bean public List<org.apache.camel.builder.RouteBuilder> routes()
Description copied from class:CamelConfigurationReturns the list of routes to use in this configuration. By default autowires allRouteBuilderinstances available in theApplicationContext.- Overrides:
routesin classCamelConfiguration
-
route
public abstract org.apache.camel.builder.RouteBuilder route()
Creates the singleRouteBuilderto use in this configuration
-
-