src/main/java/org/jboss/util/collection/WeakTypeCache.java
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)
      {
         // TODO JBMICROCONT-131 something better than toString()?
         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)
      {
         // TODO JBMICROCONT-131 something better than toString()?
         classLoaderCache.put(type.toString(), result);
      }
   }
Put a result into the cache

@param type the type
@param result the value