Package org.eclipse.osgi.framework.eventmgr

Examples of org.eclipse.osgi.framework.eventmgr.CopyOnWriteIdentityMap.entrySet()


    eventManager = new EventManager(
        "RSA EndpointDescriptionLocator Dispatcher", eventGroup); //$NON-NLS-1$
    eventQueue = new ListenerQueue(eventManager);
    CopyOnWriteIdentityMap listeners = new CopyOnWriteIdentityMap();
    listeners.put(this, this);
    eventQueue.queueListeners(listeners.entrySet(), new EventDispatcher() {
      public void dispatchEvent(Object eventListener,
          Object listenerObject, int eventAction, Object eventObject) {
        final String logMethodName = "dispatchEvent"; //$NON-NLS-1$
        // We now dispatch both EndpointListenerEvents
        if (eventObject instanceof EndpointListenerEvent) {
View Full Code Here


        EventHandlerWrapper wrapper = (EventHandlerWrapper) iter.next();
        listeners.put(wrapper, perm);
      }

      ListenerQueue listenerQueue = new ListenerQueue(currentManager);
      listenerQueue.queueListeners(listeners.entrySet(),
          eventHandlerTracker);
      if (isAsync) {
        listenerQueue.dispatchEventAsynchronous(0, event);
      } else {
        listenerQueue.dispatchEventSynchronous(0, event);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.