File tree Expand file tree Collapse file tree
src/main/java/nl/rug/jbi/jsm/util Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44import com .google .common .cache .CacheBuilder ;
55import org .apache .bcel .classfile .JavaClass ;
66import org .apache .bcel .util .ClassLoaderRepository ;
7+ import org .apache .logging .log4j .LogManager ;
8+ import org .apache .logging .log4j .Logger ;
79
810/**
911 * Extended version of the default BCEL {@link org.apache.bcel.util.ClassLoaderRepository}.
1820 * @since 2014-07-14
1921 */
2022public class SoftValueClassLoaderRepository extends ClassLoaderRepository {
23+ private final static Logger logger = LogManager .getLogger (SoftValueClassLoaderRepository .class );
2124 private final Cache <String , JavaClass > classCache = CacheBuilder .newBuilder ()
2225 .softValues ()
2326 .build ();
@@ -32,6 +35,7 @@ public SoftValueClassLoaderRepository(final ClassLoader loader) {
3235
3336 @ Override
3437 public void storeClass (JavaClass clazz ) {
38+ logger .debug ("Loaded '{}'" , clazz .getClassName ());
3539 classCache .put (clazz .getClassName (), clazz );
3640 clazz .setRepository (this );
3741 }
You can’t perform that action at this time.
0 commit comments