src/main/java/org/jboss/util/collection/WeakTypeCache.java
/**
    * Peek into the cache
    * 
    * @param clazz the class
    * @return the value
    */
Peek into the cache

@param clazz the class
@return the value
Peek into the cache @param clazz the class @return the value
protected T peek(Class<?> clazz)
   {
      ClassLoader cl = SecurityActions.getClassLoader(clazz);
      Map<String, T> classLoaderCache = getClassLoaderCache(cl);
      synchronized (classLoaderCache)
      {
         return classLoaderCache.get(clazz.getName());
      }
   }
protected T peek ( Class < ? > clazz ) { ClassLoader cl = SecurityActions . getClassLoader ( clazz ) ; Map < String , T > classLoaderCache = getClassLoaderCache ( cl ) ; synchronized ( classLoaderCache ) { return classLoaderCache . get ( clazz . getName ( ) ) ; } }
Peek into the cache
Peek into the cache