Class EventDispatcher


  • public class EventDispatcher
    extends java.lang.Object
    • Method Detail

      • startDispatching

        public void startDispatching()
      • stopDispatching

        public void stopDispatching()
      • addListener

        public Filter addListener​(BundleContext bc,
                                  java.lang.Class clazz,
                                  java.util.EventListener l,
                                  Filter filter)
      • removeListeners

        public void removeListeners​(BundleContext bc)
      • updateListener

        public Filter updateListener​(BundleContext bc,
                                     java.lang.Class clazz,
                                     java.util.EventListener l,
                                     Filter filter)
      • getAllServiceListeners

        public java.util.Collection<ListenerHook.ListenerInfo> getAllServiceListeners()
        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)
      • fireServiceEvent

        public void fireServiceEvent​(ServiceEvent event,
                                     java.util.Dictionary oldProps,
                                     Framework felix)