public class OsgiEventAdminNotifier
extends org.apache.camel.support.EventNotifierSupport
EventNotifier is in charge of propagating events
to OSGi EventAdmin if present.| Modifier and Type | Field and Description |
|---|---|
static String |
BUNDLE |
static String |
BUNDLE_ID |
static String |
BUNDLE_SYMBOLICNAME |
static String |
BUNDLE_VERSION |
static String |
CAUSE |
static String |
EVENT |
static String |
TIMESTAMP |
static String |
TOPIC_CAMEL_CONTEXT_EVENTS |
static String |
TOPIC_CAMEL_EVENTS |
static String |
TOPIC_CAMEL_EXCHANGE_EVENTS |
static String |
TOPIC_CAMEL_ROUTE_EVENTS |
static String |
TOPIC_CAMEL_SERVICE_EVENTS |
static String |
TYPE |
| Constructor and Description |
|---|
OsgiEventAdminNotifier(org.osgi.framework.BundleContext bundleContext) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doStart() |
protected void |
doStop() |
static org.osgi.framework.Version |
getBundleVersion(org.osgi.framework.Bundle bundle) |
static String |
getTopic(EventObject event) |
static String |
getType(EventObject event) |
boolean |
isEnabled(EventObject event) |
void |
notify(EventObject event) |
static String |
toUpper(String text) |
isDisabled, isIgnoreCamelContextEvents, isIgnoreExchangeCompletedEvent, isIgnoreExchangeCreatedEvent, isIgnoreExchangeEvents, isIgnoreExchangeFailedEvents, isIgnoreExchangeRedeliveryEvents, isIgnoreExchangeSendingEvents, isIgnoreExchangeSentEvents, isIgnoreRouteEvents, isIgnoreServiceEvents, setIgnoreCamelContextEvents, setIgnoreExchangeCompletedEvent, setIgnoreExchangeCreatedEvent, setIgnoreExchangeEvents, setIgnoreExchangeFailedEvents, setIgnoreExchangeRedeliveryEvents, setIgnoreExchangeSendingEvents, setIgnoreExchangeSentEvents, setIgnoreRouteEvents, setIgnoreServiceEventspublic static final String TYPE
public static final String EVENT
public static final String TIMESTAMP
public static final String BUNDLE
public static final String BUNDLE_ID
public static final String BUNDLE_SYMBOLICNAME
public static final String BUNDLE_VERSION
public static final String CAUSE
public static final String TOPIC_CAMEL_EVENTS
public static final String TOPIC_CAMEL_CONTEXT_EVENTS
public static final String TOPIC_CAMEL_EXCHANGE_EVENTS
public static final String TOPIC_CAMEL_SERVICE_EVENTS
public static final String TOPIC_CAMEL_ROUTE_EVENTS
public OsgiEventAdminNotifier(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.EventNotifierSupportExceptionpublic static String getType(EventObject event)
public static String getTopic(EventObject event)
public static org.osgi.framework.Version getBundleVersion(org.osgi.framework.Bundle bundle)
Apache Camel