Package org.jboss.util.collection

Examples of org.jboss.util.collection.WeakValueHashMap$EntrySet


         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


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

    * @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

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

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

         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

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

/*     */   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

/*      */       }
/*      */     }
/*      */
/* 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

/* 142 */       Set events = getEvents(classInfo);
/*     */
/* 144 */       BeanInfo result = createBeanInfo(classAdapter, properties, constructors, methods, events);
/* 145 */       if (map == null)
/*     */       {
/* 147 */         map = new WeakValueHashMap();
/* 148 */         this.cache.put(cl, map);
/*     */       }
/* 150 */       map.put(className, result);
/* 151 */       return result;
/*     */     }
View Full Code Here

TOP

Related Classes of org.jboss.util.collection.WeakValueHashMap$EntrySet

Copyright © 2018 www.massapicom. 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.