public class EventUtil
extends java.lang.Object
implements org.osgi.util.tracker.ServiceTrackerCustomizer<org.osgi.service.event.EventAdmin,org.osgi.service.event.EventAdmin>
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DEPLOYED |
static java.lang.String |
DEPLOYING |
static java.lang.String |
FAILED |
static java.lang.String |
UNDEPLOYED |
static java.lang.String |
UNDEPLOYING |
Constructor and Description |
---|
EventUtil(org.osgi.framework.BundleContext bundleContext) |
Modifier and Type | Method and Description |
---|---|
org.osgi.service.event.EventAdmin |
addingService(org.osgi.framework.ServiceReference<org.osgi.service.event.EventAdmin> serviceReference) |
void |
close() |
void |
modifiedService(org.osgi.framework.ServiceReference<org.osgi.service.event.EventAdmin> serviceReference,
org.osgi.service.event.EventAdmin eventAdmin) |
void |
removedService(org.osgi.framework.ServiceReference<org.osgi.service.event.EventAdmin> serviceReference,
org.osgi.service.event.EventAdmin eventAdmin) |
void |
sendEvent(org.osgi.framework.Bundle bundle,
java.lang.String eventTopic,
java.lang.Exception exception,
boolean collision) |
public static final java.lang.String DEPLOYED
public static final java.lang.String DEPLOYING
public static final java.lang.String FAILED
public static final java.lang.String UNDEPLOYED
public static final java.lang.String UNDEPLOYING
public org.osgi.service.event.EventAdmin addingService(org.osgi.framework.ServiceReference<org.osgi.service.event.EventAdmin> serviceReference)
addingService
in interface org.osgi.util.tracker.ServiceTrackerCustomizer<org.osgi.service.event.EventAdmin,org.osgi.service.event.EventAdmin>
public void close()
public void modifiedService(org.osgi.framework.ServiceReference<org.osgi.service.event.EventAdmin> serviceReference, org.osgi.service.event.EventAdmin eventAdmin)
modifiedService
in interface org.osgi.util.tracker.ServiceTrackerCustomizer<org.osgi.service.event.EventAdmin,org.osgi.service.event.EventAdmin>
public void removedService(org.osgi.framework.ServiceReference<org.osgi.service.event.EventAdmin> serviceReference, org.osgi.service.event.EventAdmin eventAdmin)
removedService
in interface org.osgi.util.tracker.ServiceTrackerCustomizer<org.osgi.service.event.EventAdmin,org.osgi.service.event.EventAdmin>
public void sendEvent(org.osgi.framework.Bundle bundle, java.lang.String eventTopic, java.lang.Exception exception, boolean collision)