public abstract class KuraRouter
extends org.apache.camel.builder.RouteBuilder
implements org.osgi.framework.BundleActivator
| Type | Property and Description |
|---|---|
protected String |
camelXmlRoutes |
| Modifier and Type | Field and Description |
|---|---|
protected org.osgi.framework.BundleContext |
bundleContext |
protected org.apache.camel.CamelContext |
camelContext |
protected org.apache.camel.ConsumerTemplate |
consumerTemplate |
protected org.slf4j.Logger |
log |
protected org.apache.camel.ProducerTemplate |
producerTemplate |
| Constructor and Description |
|---|
KuraRouter() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
activate(org.osgi.service.component.ComponentContext componentContext,
Map<String,Object> properties) |
protected void |
beforeStart(org.apache.camel.CamelContext camelContext) |
protected String |
camelXmlRoutesPid() |
protected String |
camelXmlRoutesProperty() |
void |
configure() |
protected org.apache.camel.CamelContext |
createCamelContext() |
protected void |
deactivate(org.osgi.service.component.ComponentContext componentContext) |
protected <T> T |
requiredService(Class<T> serviceType) |
protected <T> T |
service(Class<T> serviceType) |
void |
start(org.osgi.framework.BundleContext bundleContext) |
void |
stop(org.osgi.framework.BundleContext bundleContext) |
addRoutes, addRoutesToCamelContext, checkInitialized, configureRest, configureRests, configureRoute, configureRoutes, createContainer, errorHandler, from, from, from, from, fromF, getContext, getRestCollection, getRestConfigurations, getRouteCollection, includeRoutes, intercept, interceptFrom, interceptFrom, interceptSendToEndpoint, onCompletion, onException, onException, populateRests, populateRoutes, populateTransformers, populateValidators, propertyInject, rest, rest, restConfiguration, restConfiguration, setErrorHandlerBuilder, setRestCollection, setRouteCollection, toString, transformer, validatorbean, bean, bean, bean, body, body, bodyAs, constant, createErrorHandlerBuilder, deadLetterChannel, deadLetterChannel, defaultErrorHandler, endpoint, endpoint, endpoints, endpoints, exceptionMessage, exchangeProperty, faultBody, faultBodyAs, getErrorHandlerBuilder, header, jsonpath, jsonpath, language, loggingErrorHandler, loggingErrorHandler, loggingErrorHandler, loggingErrorHandler, method, method, method, method, noErrorHandler, outBody, outBody, property, regexReplaceAll, regexReplaceAll, sendTo, setContext, setContext, simple, simple, simpleF, simpleF, systemProperty, systemProperty, xpath, xpathprotected String camelXmlRoutesProperty
protected final org.slf4j.Logger log
protected org.osgi.framework.BundleContext bundleContext
protected org.apache.camel.CamelContext camelContext
protected org.apache.camel.ProducerTemplate producerTemplate
protected org.apache.camel.ConsumerTemplate consumerTemplate
public void start(org.osgi.framework.BundleContext bundleContext)
throws Exception
start in interface org.osgi.framework.BundleActivatorExceptionpublic void stop(org.osgi.framework.BundleContext bundleContext)
throws Exception
stop in interface org.osgi.framework.BundleActivatorExceptionprotected void activate(org.osgi.service.component.ComponentContext componentContext,
Map<String,Object> properties)
throws Exception
Exceptionprotected void deactivate(org.osgi.service.component.ComponentContext componentContext)
throws Exception
Exceptionpublic void configure()
throws Exception
configure in class org.apache.camel.builder.RouteBuilderExceptionprotected org.apache.camel.CamelContext createCamelContext()
protected void beforeStart(org.apache.camel.CamelContext camelContext)
protected <T> T service(Class<T> serviceType)
protected <T> T requiredService(Class<T> serviceType)
protected String camelXmlRoutesPid()
protected String camelXmlRoutesProperty()
Apache Camel