Modifier and Type | Field and Description |
---|---|
protected org.apache.camel.CamelContext |
context |
protected org.slf4j.Logger |
log |
static String |
PROPERTY_PREFIX |
protected org.apache.camel.spi.Registry |
registry |
static int |
START_DELAY |
Constructor and Description |
---|
AbstractCamelRunner() |
Modifier and Type | Method and Description |
---|---|
void |
activate(org.osgi.framework.BundleContext bundleContext,
Map<String,String> props) |
static <T> T |
configure(org.apache.camel.CamelContext context,
T target,
org.slf4j.Logger log) |
static <T> T |
configure(org.apache.camel.CamelContext context,
T target,
org.slf4j.Logger log,
boolean deep) |
static Object |
convertValue(String value,
Type type) |
protected void |
createCamelContext(org.osgi.framework.BundleContext bundleContext,
Map<String,String> props) |
void |
deactivate() |
org.apache.camel.CamelContext |
getContext() |
protected abstract List<org.apache.camel.RoutesBuilder> |
getRouteBuilders() |
protected void |
gotCamelComponent(org.osgi.framework.ServiceReference serviceReference) |
protected void |
lostCamelComponent(org.osgi.framework.ServiceReference serviceReference) |
void |
prepare(org.osgi.framework.BundleContext bundleContext,
Map<String,String> props) |
void |
run() |
protected void |
setupCamelContext(org.osgi.framework.BundleContext bundleContext,
String camelContextId) |
static void |
setupPropertiesComponent(org.apache.camel.CamelContext context,
Map<String,String> props,
org.slf4j.Logger log) |
void |
stop() |
public static final int START_DELAY
public static final String PROPERTY_PREFIX
protected org.slf4j.Logger log
protected org.apache.camel.CamelContext context
protected org.apache.camel.spi.Registry registry
public void activate(org.osgi.framework.BundleContext bundleContext, Map<String,String> props) throws Exception
Exception
public void prepare(org.osgi.framework.BundleContext bundleContext, Map<String,String> props) throws Exception
Exception
protected void createCamelContext(org.osgi.framework.BundleContext bundleContext, Map<String,String> props)
protected void setupCamelContext(org.osgi.framework.BundleContext bundleContext, String camelContextId) throws Exception
Exception
public static void setupPropertiesComponent(org.apache.camel.CamelContext context, Map<String,String> props, org.slf4j.Logger log)
protected abstract List<org.apache.camel.RoutesBuilder> getRouteBuilders()
public void deactivate()
public void stop()
public org.apache.camel.CamelContext getContext()
protected void gotCamelComponent(org.osgi.framework.ServiceReference serviceReference)
protected void lostCamelComponent(org.osgi.framework.ServiceReference serviceReference)
public static <T> T configure(org.apache.camel.CamelContext context, T target, org.slf4j.Logger log)
public static <T> T configure(org.apache.camel.CamelContext context, T target, org.slf4j.Logger log, boolean deep)
Apache Camel