public class OsgiCamelContextPublisher
extends org.apache.camel.support.EventNotifierSupport
EventNotifier
is in charge of registering
CamelContext
in the OSGi registryModifier and Type | Field and Description |
---|---|
static String |
CONTEXT_MANAGEMENT_NAME_PROPERTY |
static String |
CONTEXT_NAME_PROPERTY |
static String |
CONTEXT_SYMBOLIC_NAME_PROPERTY |
static String |
CONTEXT_VERSION_PROPERTY |
Constructor and Description |
---|
OsgiCamelContextPublisher(org.osgi.framework.BundleContext bundleContext) |
Modifier and Type | Method and Description |
---|---|
protected void |
doShutdown() |
protected void |
doStart() |
protected void |
doStop() |
static org.osgi.framework.Version |
getBundleVersion(org.osgi.framework.Bundle bundle) |
boolean |
isEnabled(EventObject event) |
static boolean |
lookupCamelContext(org.osgi.framework.BundleContext bundleContext,
String symbolicName,
String contextName)
Lookup in the OSGi Service Registry whether a
CamelContext is already registered with the given symbolic name. |
void |
notify(EventObject event) |
org.osgi.framework.ServiceRegistration<?> |
registerCamelContext(org.apache.camel.CamelContext camelContext) |
isDisabled, isIgnoreCamelContextEvents, isIgnoreExchangeCompletedEvent, isIgnoreExchangeCreatedEvent, isIgnoreExchangeEvents, isIgnoreExchangeFailedEvents, isIgnoreExchangeRedeliveryEvents, isIgnoreExchangeSendingEvents, isIgnoreExchangeSentEvents, isIgnoreRouteEvents, isIgnoreServiceEvents, setIgnoreCamelContextEvents, setIgnoreExchangeCompletedEvent, setIgnoreExchangeCreatedEvent, setIgnoreExchangeEvents, setIgnoreExchangeFailedEvents, setIgnoreExchangeRedeliveryEvents, setIgnoreExchangeSendingEvents, setIgnoreExchangeSentEvents, setIgnoreRouteEvents, setIgnoreServiceEvents
public static final String CONTEXT_SYMBOLIC_NAME_PROPERTY
public static final String CONTEXT_VERSION_PROPERTY
public static final String CONTEXT_NAME_PROPERTY
public static final String CONTEXT_MANAGEMENT_NAME_PROPERTY
public OsgiCamelContextPublisher(org.osgi.framework.BundleContext bundleContext)
public void notify(EventObject event) throws Exception
Exception
public boolean isEnabled(EventObject event)
protected void doStart() throws Exception
doStart
in class org.apache.camel.support.EventNotifierSupport
Exception
protected void doStop() throws Exception
doStop
in class org.apache.camel.support.EventNotifierSupport
Exception
protected void doShutdown() throws Exception
doShutdown
in class org.apache.camel.support.ServiceSupport
Exception
public org.osgi.framework.ServiceRegistration<?> registerCamelContext(org.apache.camel.CamelContext camelContext) throws org.osgi.framework.InvalidSyntaxException
org.osgi.framework.InvalidSyntaxException
public static org.osgi.framework.Version getBundleVersion(org.osgi.framework.Bundle bundle)
public static boolean lookupCamelContext(org.osgi.framework.BundleContext bundleContext, String symbolicName, String contextName) throws org.osgi.framework.InvalidSyntaxException
CamelContext
is already registered with the given symbolic name.org.osgi.framework.InvalidSyntaxException
Apache Camel