@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(java.lang.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(java.lang.String[] args)
throws java.lang.Exception
java.lang.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 java.lang.Exception
createCamelContext in class org.apache.camel.spring.javaconfig.CamelConfigurationjava.lang.Exceptionprotected void setupCamelContext(org.apache.camel.CamelContext camelContext)
throws java.lang.Exception
setupCamelContext in class org.apache.camel.spring.javaconfig.CamelConfigurationjava.lang.Exception@Bean public org.apache.camel.builder.RouteBuilder route()
route in class org.apache.camel.spring.javaconfig.SingleRouteCamelConfigurationpublic void afterPropertiesSet()
throws java.lang.Exception
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanjava.lang.ExceptionApache CAMEL