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

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