Modifier and Type | Field and Description |
---|---|
protected org.slf4j.Logger |
log |
static String |
PROPERTY_PREFIX |
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) |
protected org.apache.camel.spi.Registry |
createRegistry() |
protected org.apache.camel.spi.Registry |
createRegistry(org.osgi.framework.BundleContext bundleContext) |
void |
deactivate() |
org.apache.camel.CamelContext |
getContext() |
static <T extends org.apache.camel.spi.Registry> |
getRegistry(org.apache.camel.CamelContext context,
Class<T> type) |
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
public final void activate(org.osgi.framework.BundleContext bundleContext, Map<String,String> props) throws Exception
Exception
public final 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() throws Exception
Exception
public final void deactivate()
public final void stop()
public final org.apache.camel.CamelContext getContext()
protected final void gotCamelComponent(org.osgi.framework.ServiceReference serviceReference)
protected final 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)
public static Object convertValue(String value, Type type) throws Exception
Exception
public static <T extends org.apache.camel.spi.Registry> T getRegistry(org.apache.camel.CamelContext context, Class<T> type) throws Exception
Exception
protected org.apache.camel.spi.Registry createRegistry()
protected org.apache.camel.spi.Registry createRegistry(org.osgi.framework.BundleContext bundleContext)
Apache Camel