org.apache.felix.framework.util
Class EventDispatcher

java.lang.Object
  extended by org.apache.felix.framework.util.EventDispatcher

public class EventDispatcher
extends Object


Method Summary
 void addListener(Bundle bundle, Class clazz, EventListener l, Filter filter)
           
 void fireBundleEvent(BundleEvent event)
           
 void fireFrameworkEvent(FrameworkEvent event)
           
 void fireServiceEvent(ServiceEvent event)
           
 ListenerHook.ListenerInfo removeListener(Bundle bundle, Class clazz, EventListener l)
           
 void removeListeners(Bundle bundle)
           
static void shutdown()
           
static EventDispatcher start(Logger logger)
           
 boolean updateListener(Bundle bundle, Class clazz, EventListener l, Filter filter)
           
 Collection wrapAllServiceListeners()
          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
 

Method Detail

start

public static EventDispatcher start(Logger logger)

shutdown

public static void shutdown()

addListener

public void 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 boolean updateListener(Bundle bundle,
                              Class clazz,
                              EventListener l,
                              Filter filter)

wrapAllServiceListeners

public Collection wrapAllServiceListeners()
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)


Copyright © 2006-2011 Apache Software Foundation. All Rights Reserved.