class OsgiEventDispatcher extends java.lang.Object implements EventDispatcher, BlueprintConstants
EventAdmin dispatcher. Implemented as a package-protected generic class that can be further configured
by the user-facing classes. The additional benefit is that being a separate class, this class can be used only when
the org.osgi.service.event package is available, w/o triggering runtime class loading.| Modifier and Type | Field and Description |
|---|---|
private org.osgi.framework.BundleContext |
bundleContext |
private static java.lang.String |
EVENT_ADMIN |
private static org.apache.commons.logging.Log |
log
logger
|
private PublishType |
publisher |
ALL_DEPENDENCIES, BUNDLE, BUNDLE_ID, BUNDLE_NAME, BUNDLE_SYM_NAME, BUNDLE_VERSION, CAUSE, DEPENDENCIES, EVENT, EVENT_FILTER, EXCEPTION, EXCEPTION_CLASS, EXCEPTION_MESSAGE, EXTENDER_BUNDLE, EXTENDER_BUNDLE_ID, EXTENDER_BUNDLE_SYM_NAME, EXTENDER_BUNDLE_VERSION, SERVICE_FILTER, SERVICE_FILTER_2, SERVICE_OBJECTCLASS, TIMESTAMP, TOPIC_BLUEPRINT_EVENTS, TOPIC_CREATED, TOPIC_CREATING, TOPIC_DESTROYED, TOPIC_DESTROYING, TOPIC_FAILURE, TOPIC_GRACE, TOPIC_WAITING, TYPE| Constructor and Description |
|---|
OsgiEventDispatcher(org.osgi.framework.BundleContext bundleContext,
PublishType publisher) |
| Modifier and Type | Method and Description |
|---|---|
void |
afterClose(BlueprintEvent event) |
void |
afterRefresh(BlueprintEvent event) |
void |
beforeClose(BlueprintEvent event) |
void |
beforeRefresh(BlueprintEvent event) |
void |
grace(BlueprintEvent event) |
private java.util.Dictionary<java.lang.String,java.lang.Object> |
init(BlueprintEvent event) |
private void |
initDependencies(java.util.Dictionary<java.lang.String,java.lang.Object> props,
BlueprintEvent event) |
void |
refreshFailure(BlueprintEvent event) |
private void |
sendEvent(org.osgi.service.event.Event osgiEvent) |
void |
waiting(BlueprintEvent event) |
private static final org.apache.commons.logging.Log log
private static final java.lang.String EVENT_ADMIN
private final org.osgi.framework.BundleContext bundleContext
private final PublishType publisher
public OsgiEventDispatcher(org.osgi.framework.BundleContext bundleContext,
PublishType publisher)
public void afterClose(BlueprintEvent event)
afterClose in interface EventDispatcherpublic void afterRefresh(BlueprintEvent event)
afterRefresh in interface EventDispatcherpublic void beforeClose(BlueprintEvent event)
beforeClose in interface EventDispatcherpublic void beforeRefresh(BlueprintEvent event)
beforeRefresh in interface EventDispatcherpublic void refreshFailure(BlueprintEvent event)
refreshFailure in interface EventDispatcherpublic void grace(BlueprintEvent event)
grace in interface EventDispatcherpublic void waiting(BlueprintEvent event)
waiting in interface EventDispatcherprivate void initDependencies(java.util.Dictionary<java.lang.String,java.lang.Object> props,
BlueprintEvent event)
private java.util.Dictionary<java.lang.String,java.lang.Object> init(BlueprintEvent event)
private void sendEvent(org.osgi.service.event.Event osgiEvent)