@Configuration
public class MyRouteConfig
extends org.apache.camel.spring.javaconfig.SingleRouteCamelConfiguration
implements org.springframework.beans.factory.InitializingBean, org.springframework.osgi.context.BundleContextAware
| 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 OSGi
|
org.osgi.framework.BundleContext |
getBundleContext() |
static void |
main(String[] args)
Allow this route to be run as an application
|
org.apache.camel.builder.RouteBuilder |
route() |
void |
setBundleContext(org.osgi.framework.BundleContext bundleContext) |
protected void |
setupCamelContext(org.apache.camel.CamelContext camelContext) |
routespublic static void main(String[] args) throws Exception
Exceptionpublic org.osgi.framework.BundleContext getBundleContext()
public void setBundleContext(org.osgi.framework.BundleContext bundleContext)
setBundleContext in interface org.springframework.osgi.context.BundleContextAwareprotected org.apache.camel.CamelContext createCamelContext()
throws Exception
createCamelContext in class org.apache.camel.spring.javaconfig.CamelConfigurationExceptionprotected void setupCamelContext(org.apache.camel.CamelContext camelContext)
throws Exception
setupCamelContext in class org.apache.camel.spring.javaconfig.CamelConfigurationException@Bean public org.apache.camel.builder.RouteBuilder route()
route in class org.apache.camel.spring.javaconfig.SingleRouteCamelConfigurationApache Camel