@Configuration
public class MyRouteConfig
extends org.apache.camel.spring.javaconfig.SingleRouteCamelConfiguration
implements org.springframework.beans.factory.InitializingBean
Modifier and Type | Class and Description |
---|---|
static class |
MyRouteConfig.SomeBean |
Constructor and Description |
---|
MyRouteConfig() |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
protected org.apache.camel.CamelContext |
createCamelContext()
Returns the CamelContext which support Spring
|
static void |
main(String[] args)
Allow this route to be run as an application
|
org.apache.camel.builder.RouteBuilder |
route() |
protected void |
setupCamelContext(org.apache.camel.CamelContext camelContext) |
routes
public static void main(String[] args) throws Exception
Exception
protected org.apache.camel.CamelContext createCamelContext() throws Exception
createCamelContext
in class org.apache.camel.spring.javaconfig.CamelConfiguration
Exception
protected void setupCamelContext(org.apache.camel.CamelContext camelContext) throws Exception
setupCamelContext
in class org.apache.camel.spring.javaconfig.CamelConfiguration
Exception
@Bean public org.apache.camel.builder.RouteBuilder route()
route
in class org.apache.camel.spring.javaconfig.SingleRouteCamelConfiguration
Apache Camel