Examples of WeakValueHashMap


Examples of org.biojava.utils.cache.WeakValueHashMap

extends Unchangeable
implements Ontology {
  private final Map termCache;

  IntegerOntology() {
    termCache = new WeakValueHashMap();
  }
View Full Code Here

Examples of org.jboss.util.collection.WeakValueHashMap

         Set events = getEvents(classInfo);
        
         BeanInfo result = createBeanInfo(classAdapter, properties, constructors, methods, events);
         if (map == null)
         {
            map = new WeakValueHashMap();
            cache.put(cl, map);
         }
         map.put(className, result);
         return result;
      }
View Full Code Here

Examples of org.jboss.util.collection.WeakValueHashMap

         lockWrite();
         try
         {
            if (subDomainsByName == UnmodifiableEmptyCollections.EMPTY_WEAK_VALUE_HASHMAP)
            {
               subDomainsByName = new WeakValueHashMap();
            }
         }
         finally
         {
            unlockWrite();
View Full Code Here

Examples of org.jboss.util.collection.WeakValueHashMap

    * @param flag true to enable caching, false to disable it
    */
   public static void useClassCache(boolean flag)
   {
      if( flag == true )
         classCache = new WeakValueHashMap();
      else
         classCache = null;
   }
View Full Code Here

Examples of org.jboss.util.collection.WeakValueHashMap

         lockWrite();
         try
         {
            if (subDomainsByName == UnmodifiableEmptyCollections.EMPTY_WEAK_VALUE_HASHMAP)
            {
               subDomainsByName = new WeakValueHashMap();
            }
         }
         finally
         {
            unlockWrite();
View Full Code Here

Examples of org.jboss.util.collection.WeakValueHashMap

         }
      }
     
      if (cache == null)
      {
         cache = new WeakValueHashMap();
         compositeDataMethodCache.put(clazz, cache);
      }
      cache.put(key, method);
      return method;
   }
View Full Code Here

Examples of org.jboss.util.collection.WeakValueHashMap

         Set<EventInfo> events = getEvents(classInfo);
        
         BeanInfo result = createBeanInfo(classAdapter, properties, constructors, methods, events);
         if (map == null)
         {
            map = new WeakValueHashMap();
            cache.put(cl, map);
         }
         map.put(className, result);
         return result;
      }
View Full Code Here

Examples of org.jboss.util.collection.WeakValueHashMap

/* 2195 */       lockWrite();
/*      */       try
/*      */       {
/* 2198 */         if (this.subDomainsByName == UnmodifiableEmptyCollections.EMPTY_WEAK_VALUE_HASHMAP)
/*      */         {
/* 2200 */           this.subDomainsByName = new WeakValueHashMap();
/*      */         }
/*      */       }
/*      */       finally
/*      */       {
/* 2205 */         unlockWrite();
View Full Code Here

Examples of org.jboss.util.collection.WeakValueHashMap

/*     */   private static WeakValueHashMap classCache;
/*     */
/*     */   public static void useClassCache(boolean flag)
/*     */   {
/*  55 */     if (flag == true)
/*  56 */       classCache = new WeakValueHashMap();
/*     */     else
/*  58 */       classCache = null;
/*     */   }
View Full Code Here

Examples of org.jboss.util.collection.WeakValueHashMap

/*      */       }
/*      */     }
/*      */
/* 1011 */     if (cache == null)
/*      */     {
/* 1013 */       cache = new WeakValueHashMap();
/* 1014 */       compositeDataMethodCache.put(clazz, cache);
/*      */     }
/* 1016 */     cache.put(key, method);
/* 1017 */     return method;
/*      */   }
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.