Package com.peterphi.std.guice.common
Class ClassScannerFactory
java.lang.Object
com.peterphi.std.guice.common.ClassScannerFactory
A Factory for
ClassScanner
instances that maintains a WeakReference
to the produced scanner (allowing the GC to collect the produced scanner and associated jar file refs when it's no longer in
use)-
Constructor Summary
ConstructorDescriptionClassScannerFactory
(ClassLoader loader, String... packages) ClassScannerFactory
(String... packages) -
Method Summary
-
Constructor Details
-
ClassScannerFactory
-
ClassScannerFactory
-
-
Method Details
-
getInstance
-
getMetricNewInstanceCount
public int getMetricNewInstanceCount()
-