src/main/java/org/jboss/util/collection/WeakTypeCache.java
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());
      }
   }
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

@param type the type
@return the value
Peek into the cache