public class EventAdminHandler extends Object implements org.ops4j.pax.web.service.spi.model.events.WebApplicationEventListener, org.osgi.util.tracker.ServiceTrackerCustomizer<org.osgi.service.event.EventAdmin,org.osgi.service.event.EventAdmin>
This class listens to WebApplicationEvents and redirect them to the
EventAdmin service according to chapter "128.5 Events" of OSGi CMPN R7 Specification.
This handler is part of pax-web-runtime, but processes events related to WABs. No events related to Whiteboard/HttpService element registration are passed to Event Admin (for now?) because Whiteboard Specification (and HttpService Specification) doesn't mention anything about Event Admin.
| Constructor and Description |
|---|
EventAdminHandler(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> reference) |
void |
modifiedService(org.osgi.framework.ServiceReference<org.osgi.service.event.EventAdmin> reference,
org.osgi.service.event.EventAdmin service) |
void |
removedService(org.osgi.framework.ServiceReference<org.osgi.service.event.EventAdmin> reference,
org.osgi.service.event.EventAdmin service) |
void |
webEvent(org.ops4j.pax.web.service.spi.model.events.WebApplicationEvent event) |
public EventAdminHandler(org.osgi.framework.BundleContext bundleContext)
public void webEvent(org.ops4j.pax.web.service.spi.model.events.WebApplicationEvent event)
webEvent in interface org.ops4j.pax.web.service.spi.model.events.WebApplicationEventListenerpublic org.osgi.service.event.EventAdmin addingService(org.osgi.framework.ServiceReference<org.osgi.service.event.EventAdmin> reference)
addingService in interface org.osgi.util.tracker.ServiceTrackerCustomizer<org.osgi.service.event.EventAdmin,org.osgi.service.event.EventAdmin>public void modifiedService(org.osgi.framework.ServiceReference<org.osgi.service.event.EventAdmin> reference,
org.osgi.service.event.EventAdmin service)
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> reference,
org.osgi.service.event.EventAdmin service)
removedService in interface org.osgi.util.tracker.ServiceTrackerCustomizer<org.osgi.service.event.EventAdmin,org.osgi.service.event.EventAdmin>Copyright © 2006–2023 OPS4J - Open Participation Software for Java. All rights reserved.