Examples of CopyOnWriteArrayList


Examples of java.util.concurrent.CopyOnWriteArrayList

        if (logger.isDebugEnabled())
        {
            logger.debug("Creating " + receiversCount + " sub-receivers for " + endpoint.getEndpointURI());
        }

        consumers = new CopyOnWriteArrayList();
    }
View Full Code Here

Examples of java.util.concurrent.CopyOnWriteArrayList

    @SuppressWarnings("unchecked")
    protected void addChildService(Object childService) {
        synchronized (this) {
            if (childServices == null) {
                childServices = new CopyOnWriteArrayList();
            }
        }
        childServices.add(childService);
    }
View Full Code Here

Examples of java.util.concurrent.CopyOnWriteArrayList

    public static void addObserver (String topic, Observer observer)
    {
        List observers = (List)_observersByTopic.get(topic);
        if (observers == null) {
            observers = new CopyOnWriteArrayList();
            _observersByTopic.put(topic, observers);
        }
        observers.add(observer);
    }
View Full Code Here

Examples of java.util.concurrent.CopyOnWriteArrayList

        {
            throw new IllegalArgumentException("external context must not be null");
        }
        _externalContext = externalContext;

        _externalContext.getApplicationMap().put(INJECTED_BEAN_STORAGE_KEY, new CopyOnWriteArrayList());
    }
View Full Code Here

Examples of java.util.concurrent.CopyOnWriteArrayList

        {
            throw new IllegalArgumentException("external context must not be null");
        }
        _externalContext = externalContext;

        _externalContext.getApplicationMap().put(INJECTED_BEAN_STORAGE_KEY, new CopyOnWriteArrayList());
    }
View Full Code Here

Examples of java.util.concurrent.CopyOnWriteArrayList

     * @param store the {@link RoleRepositoryStore} to use, cannot be <code>null</code>.
     */
    public RoleRepository(RoleRepositoryStore store) {
        m_store = store;
       
        m_listeners = new CopyOnWriteArrayList();
        m_roleChangeReflector = new RoleChangeReflector();
    }
View Full Code Here

Examples of java.util.concurrent.CopyOnWriteArrayList

        {
            throw new IllegalArgumentException("external context must not be null");
        }
        _externalContext = externalContext;

        _externalContext.getApplicationMap().put(INJECTED_BEAN_STORAGE_KEY, new CopyOnWriteArrayList());
    }
View Full Code Here

Examples of java.util.concurrent.CopyOnWriteArrayList

        {
            beanEntryStorage = (List)factoryMap.get(INJECTED_BEAN_STORAGE_KEY);

            if (beanEntryStorage == null)
            {
                beanEntryStorage = new CopyOnWriteArrayList();
                factoryMap.put(INJECTED_BEAN_STORAGE_KEY, beanEntryStorage);
            }
        }

        List<String> classNames;
View Full Code Here

Examples of java.util.concurrent.CopyOnWriteArrayList

  if (usersInRange == null) {
      if (isInRange == false) {
    return;
      }

      usersInRange = new CopyOnWriteArrayList();
      usersInRangeMap.put(info.getUserID().getUsername(), usersInRange);
      logger.fine("ADDING NEW MAP FOR " + info);
  }

  if (isInRange) {
View Full Code Here

Examples of java.util.concurrent.CopyOnWriteArrayList

        List list = (List)aem.listeners.get(type);
        synchronized ( aem.listeners) {
            // If this impls  array for event type does not exist.
            // Following creates it dynamically for this event type.
            if ( list == null ) {
                list = new CopyOnWriteArrayList();
                aem.listeners.put(type, list);
            }
        }
        synchronized (list) {
            list.add(listener);
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.