public class EventDispatcher extends Object
Constructor and Description |
---|
EventDispatcher(Logger logger,
ServiceRegistry registry) |
Modifier and Type | Method and Description |
---|---|
Filter |
addListener(BundleContext bc,
Class clazz,
EventListener l,
Filter filter) |
void |
fireBundleEvent(BundleEvent event,
Framework felix) |
void |
fireFrameworkEvent(FrameworkEvent event) |
void |
fireServiceEvent(ServiceEvent event,
Dictionary oldProps,
Framework felix) |
Collection<ListenerHook.ListenerInfo> |
getAllServiceListeners()
Returns all existing service listener information into a collection of
ListenerHook.ListenerInfo objects.
|
ListenerHook.ListenerInfo |
removeListener(BundleContext bc,
Class clazz,
EventListener l) |
void |
removeListeners(BundleContext bc) |
void |
startDispatching() |
void |
stopDispatching() |
Filter |
updateListener(BundleContext bc,
Class clazz,
EventListener l,
Filter filter) |
public EventDispatcher(Logger logger, ServiceRegistry registry)
public void startDispatching()
public void stopDispatching()
public Filter addListener(BundleContext bc, Class clazz, EventListener l, Filter filter)
public ListenerHook.ListenerInfo removeListener(BundleContext bc, Class clazz, EventListener l)
public void removeListeners(BundleContext bc)
public Filter updateListener(BundleContext bc, Class clazz, EventListener l, Filter filter)
public Collection<ListenerHook.ListenerInfo> getAllServiceListeners()
public void fireFrameworkEvent(FrameworkEvent event)
public void fireBundleEvent(BundleEvent event, Framework felix)
public void fireServiceEvent(ServiceEvent event, Dictionary oldProps, Framework felix)
Copyright © 2007–2018 The Apache Software Foundation. All rights reserved.