src/main/java/org/jboss/util/collection/WeakTypeCache.java
/**
    * Put a result into the cache
    * 
    * @param type the type
    * @param result the value
    */
Put a result into the cache

@param type the type
@param result the value
Put a result into the cache @param type the type @param result the value
protected void put(ParameterizedType type, T result)
   {
      Class<?> rawType = (Class<?>) type.getRawType();
      ClassLoader cl = SecurityActions.getClassLoader(rawType);
      Map<String, T> classLoaderCache = getClassLoaderCache(cl);
      synchronized (classLoaderCache)
      {
         classLoaderCache.put(type.toString(), result);
      }
   }
protected void put ( ParameterizedType type , T result ) { Class < ? > rawType = ( Class < ? > ) type . getRawType ( ) ; ClassLoader cl = SecurityActions . getClassLoader ( rawType ) ; Map < String , T > classLoaderCache = getClassLoaderCache ( cl ) ; synchronized ( classLoaderCache ) { classLoaderCache . put ( type . toString ( ) , result ) ; } }
Put a result into the cache
Put a result into the cache
// TODO JBMICROCONT-131 something better than toString()?