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