Examples of WeakKey


Examples of com.sun.jini.jeri.internal.runtime.WeakKey

  ProtectionDomain pd;
  if (client == null) {
      pd = emptyPD;
  } else {
      synchronized (domains) {
    WeakKey k;
    while ((k = (WeakKey) queue.poll()) != null) {
        domains.remove(k);
    }
    pd = (ProtectionDomain) domains.get(new WeakKey(client));
    if (pd == null) {
        Set set = client.getPrincipals();
        Principal[] prins =
      (Principal[]) set.toArray(new Principal[set.size()]);
        pd = new ProtectionDomain(emptyCS, null, null, prins);
        domains.put(new WeakKey(client, queue), pd);
    }
      }
  }
  boolean ok = pd.implies(permission);
  // XXX what about logging
View Full Code Here

Examples of com.sun.jini.jeri.internal.runtime.WeakKey

  ProtectionDomain pd;
  if (client == null) {
      pd = emptyPD;
  } else {
      synchronized (domains) {
    WeakKey k;
    while ((k = (WeakKey) queue.poll()) != null) {
        domains.remove(k);
    }
    pd = (ProtectionDomain) domains.get(new WeakKey(client));
    if (pd == null) {
        Set set = client.getPrincipals();
        Principal[] prins =
      (Principal[]) set.toArray(new Principal[set.size()]);
        pd = new ProtectionDomain(emptyCS, null, null, prins);
        domains.put(new WeakKey(client, queue), pd);
    }
      }
  }
  boolean ok = pd.implies(permission);
  // XXX what about logging
View Full Code Here

Examples of org.apache.axis2.jaxws.util.WeakKey

        Map<QName, EndpointDescriptionImpl> innerMap = null;
        synchronized(dynamicEndpointDescriptions) {
            innerMap = dynamicEndpointDescriptions.get(WeakKey.comparisonKey(key));
            if (innerMap == null) {
               innerMap = new HashMap<QName, EndpointDescriptionImpl>();
               dynamicEndpointDescriptions.put(new WeakKey(key, dynamicPortRefQueue), innerMap);
            }
            innerMap.put(endpointDescriptionImpl.getPortQName(), endpointDescriptionImpl);
        }
    }
View Full Code Here

Examples of org.apache.axis2.jaxws.util.WeakKey

            // Remove any entries that were GC'd.    The instance of the WeakKey containing the
            // ServiceDelegate that was GC'd is placed on the reference queue, so we use that exact
            // key value to remove the entry from the collection.
            Object gcKey = null;
            while ((gcKey = dynamicPortRefQueue.poll()) != null) {
                WeakKey removeKey = (WeakKey) gcKey;
                if (log.isDebugEnabled()) {
                    log.debug("Removing GC'd key from dynamic ports: " + removeKey);
                }
                Map<QName, EndpointDescriptionImpl> removeEntry =
                    dynamicEndpointDescriptions.remove(removeKey);
View Full Code Here

Examples of org.apache.axis2.jaxws.util.WeakKey

        Map<QName, EndpointDescriptionImpl> innerMap = null;
        synchronized(dynamicEndpointDescriptions) {
            innerMap = dynamicEndpointDescriptions.get(WeakKey.comparisonKey(key));
            if (innerMap == null) {
               innerMap = new HashMap<QName, EndpointDescriptionImpl>();
               dynamicEndpointDescriptions.put(new WeakKey(key, dynamicPortRefQueue), innerMap);
            }
            innerMap.put(endpointDescriptionImpl.getPortQName(), endpointDescriptionImpl);
        }
    }
View Full Code Here

Examples of org.apache.axis2.jaxws.util.WeakKey

            // Remove any entries that were GC'd.    The instance of the WeakKey containing the
            // ServiceDelegate that was GC'd is placed on the reference queue, so we use that exact
            // key value to remove the entry from the collection.
            Object gcKey = null;
            while ((gcKey = dynamicPortRefQueue.poll()) != null) {
                WeakKey removeKey = (WeakKey) gcKey;
                if (log.isDebugEnabled()) {
                    log.debug("Removing GC'd key from dynamic ports: " + removeKey);
                }
                Map<QName, EndpointDescriptionImpl> removeEntry =
                    dynamicEndpointDescriptions.remove(removeKey);
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.