Class ClassScannerFactory

java.lang.Object
com.peterphi.std.guice.common.ClassScannerFactory

public class ClassScannerFactory extends Object
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 Details

    • ClassScannerFactory

      public ClassScannerFactory(String... packages)
    • ClassScannerFactory

      public ClassScannerFactory(ClassLoader loader, String... packages)
  • Method Details

    • getInstance

      public ClassScanner getInstance()
    • getMetricNewInstanceCount

      public int getMetricNewInstanceCount()