Class ClassesToLoadScanner

java.lang.Object
dev.voidframework.core.classestoload.ClassesToLoadScanner

public final class ClassesToLoadScanner extends Object
Classpath scanner to fin classes to load.
  • Method Details

    • findClassesToLoad

      public static ScannedClassesToLoad findClassesToLoad(String[] acceptedScanPaths, String[] rejectedScanPaths, List<String> extraInterfaces)
      Scan given paths to find classes to bind.
      Parameters:
      acceptedScanPaths - The locations to scan for classes to bind
      rejectedScanPaths - The locations to exclude from the scan
      extraInterfaces - The extra interface for which consider implementations as useful classes to load
      Returns:
      Scan result
    • restoreClassesToLoad

      public static ScannedClassesToLoad restoreClassesToLoad(InputStream inputStream)
      Restore a ScannedClassesToLoad from the given stream.
      Parameters:
      inputStream - The stream to use to restore ScannedClassesToLoad
      Returns:
      Restored ScannedClassesToLoad
    • persistClassesToLoad

      public static void persistClassesToLoad(ScannedClassesToLoad scannedClassesToLoad, Path outputDirectoryPath)
      Persists a ScannedClassesToLoad object.
      Parameters:
      scannedClassesToLoad - The ScannedClassesToLoad object to persist
      outputDirectoryPath - Output directory