public class OsgiCamelContextPublisher
extends org.apache.camel.support.EventNotifierSupport
EventNotifier is in charge of registering
CamelContext in the OSGi registry| Modifier 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) |
isIgnoreCamelContextEvents, isIgnoreExchangeCompletedEvent, isIgnoreExchangeCreatedEvent, isIgnoreExchangeEvents, isIgnoreExchangeFailedEvents, isIgnoreExchangeRedeliveryEvents, isIgnoreExchangeSendingEvents, isIgnoreExchangeSentEvents, isIgnoreRouteEvents, isIgnoreServiceEvents, setIgnoreCamelContextEvents, setIgnoreExchangeCompletedEvent, setIgnoreExchangeCreatedEvent, setIgnoreExchangeEvents, setIgnoreExchangeFailedEvents, setIgnoreExchangeRedeliveryEvents, setIgnoreExchangeSendingEvents, setIgnoreExchangeSentEvents, setIgnoreRouteEvents, setIgnoreServiceEventspublic 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
Exceptionpublic boolean isEnabled(EventObject event)
protected void doStart()
throws Exception
doStart in class org.apache.camel.support.EventNotifierSupportExceptionprotected void doStop()
throws Exception
doStop in class org.apache.camel.support.EventNotifierSupportExceptionprotected void doShutdown()
throws Exception
doShutdown in class org.apache.camel.support.ServiceSupportExceptionpublic org.osgi.framework.ServiceRegistration<?> registerCamelContext(org.apache.camel.CamelContext camelContext)
throws org.osgi.framework.InvalidSyntaxException
org.osgi.framework.InvalidSyntaxExceptionpublic 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.InvalidSyntaxExceptionApache Camel