org.apache.felix.framework.util
Class EventDispatcher
java.lang.Object
org.apache.felix.framework.util.EventDispatcher
public class EventDispatcher
- extends Object
Method Summary |
Filter |
addListener(Bundle bundle,
Class clazz,
EventListener l,
Filter filter)
|
void |
fireBundleEvent(BundleEvent event)
|
void |
fireFrameworkEvent(FrameworkEvent event)
|
void |
fireServiceEvent(ServiceEvent event,
Dictionary oldProps,
Framework felix)
|
ListenerHook.ListenerInfo |
removeListener(Bundle bundle,
Class clazz,
EventListener l)
|
void |
removeListeners(Bundle bundle)
|
void |
setServiceRegistry(ServiceRegistry sr)
|
static void |
shutdown()
|
static EventDispatcher |
start(Logger logger)
|
Filter |
updateListener(Bundle bundle,
Class clazz,
EventListener l,
Filter filter)
|
Collection |
wrapAllServiceListeners(boolean removed)
Returns all existing service listener information into a collection of
ListenerHook.ListenerInfo objects. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
start
public static EventDispatcher start(Logger logger)
setServiceRegistry
public void setServiceRegistry(ServiceRegistry sr)
shutdown
public static void shutdown()
addListener
public Filter addListener(Bundle bundle,
Class clazz,
EventListener l,
Filter filter)
removeListener
public ListenerHook.ListenerInfo removeListener(Bundle bundle,
Class clazz,
EventListener l)
removeListeners
public void removeListeners(Bundle bundle)
updateListener
public Filter updateListener(Bundle bundle,
Class clazz,
EventListener l,
Filter filter)
wrapAllServiceListeners
public Collection wrapAllServiceListeners(boolean removed)
- Returns all existing service listener information into a collection of
ListenerHook.ListenerInfo objects. This is used the first time a listener
hook is registered to synchronize it with the existing set of listeners.
- Returns:
- Returns all existing service listener information into a collection of
ListenerHook.ListenerInfo objects
fireFrameworkEvent
public void fireFrameworkEvent(FrameworkEvent event)
fireBundleEvent
public void fireBundleEvent(BundleEvent event)
fireServiceEvent
public void fireServiceEvent(ServiceEvent event,
Dictionary oldProps,
Framework felix)
Copyright © 2013 The Apache Software Foundation. All Rights Reserved.