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
 org.osgi.framework.Filter addListener(org.osgi.framework.Bundle bundle, Class clazz, EventListener l, org.osgi.framework.Filter filter)
           
 void fireBundleEvent(org.osgi.framework.BundleEvent event)
           
 void fireFrameworkEvent(org.osgi.framework.FrameworkEvent event)
           
 void fireServiceEvent(org.osgi.framework.ServiceEvent event, Dictionary oldProps, org.osgi.framework.launch.Framework felix)
           
 org.osgi.framework.hooks.service.ListenerHook.ListenerInfo removeListener(org.osgi.framework.Bundle bundle, Class clazz, EventListener l)
           
 void removeListeners(org.osgi.framework.Bundle bundle)
           
 void setServiceRegistry(ServiceRegistry sr)
           
static void shutdown()
           
static EventDispatcher start(Logger logger)
           
 org.osgi.framework.Filter updateListener(org.osgi.framework.Bundle bundle, Class clazz, EventListener l, org.osgi.framework.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
 

Method Detail

start

public static EventDispatcher start(Logger logger)

setServiceRegistry

public void setServiceRegistry(ServiceRegistry sr)

shutdown

public static void shutdown()

addListener

public org.osgi.framework.Filter addListener(org.osgi.framework.Bundle bundle,
                                             Class clazz,
                                             EventListener l,
                                             org.osgi.framework.Filter filter)

removeListener

public org.osgi.framework.hooks.service.ListenerHook.ListenerInfo removeListener(org.osgi.framework.Bundle bundle,
                                                                                 Class clazz,
                                                                                 EventListener l)

removeListeners

public void removeListeners(org.osgi.framework.Bundle bundle)

updateListener

public org.osgi.framework.Filter updateListener(org.osgi.framework.Bundle bundle,
                                                Class clazz,
                                                EventListener l,
                                                org.osgi.framework.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(org.osgi.framework.FrameworkEvent event)

fireBundleEvent

public void fireBundleEvent(org.osgi.framework.BundleEvent event)

fireServiceEvent

public void fireServiceEvent(org.osgi.framework.ServiceEvent event,
                             Dictionary oldProps,
                             org.osgi.framework.launch.Framework felix)


Copyright © 2011. All Rights Reserved.