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

@param clazz the class
@param result the value
Put a result into the cache @param clazz the class @param result the value
protected void put(Class<?> clazz, T result)
   {
      ClassLoader cl = SecurityActions.getClassLoader(clazz);
      Map<String, T> classLoaderCache = getClassLoaderCache(cl);
      synchronized (classLoaderCache)
      {
         classLoaderCache.put(clazz.getName(), result);
      }
   }
protected void put ( Class < ? > clazz , T result ) { ClassLoader cl = SecurityActions . getClassLoader ( clazz ) ; Map < String , T > classLoaderCache = getClassLoaderCache ( cl ) ; synchronized ( classLoaderCache ) { classLoaderCache . put ( clazz . getName ( ) , result ) ; } }
Put a result into the cache
Put a result into the cache