public static ClassResolver weakCachingConcurrentResolver ( ClassLoader classLoader ) { return new CachingClassResolver ( new ClassLoaderClassResolver ( defaultClassLoader ( classLoader ) ) , new WeakReferenceMap < String , Class < ? > > ( PlatformDependent . < String , Reference < Class < ? > > > newConcurrentHashMap ( ) ) ) ; }
non - aggressive concurrent cache good for shared cache when we re worried about class unloading