Class ClassesToLoadScanner

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

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

    • findClassesToLoad

      public static ScannedClassesToLoad findClassesToLoad(List<String> acceptedScanPathList, List<String> rejectedScanPathList, List<String> extraInterfaceList)
      Scan given paths to find classes to bind.
      Parameters:
      acceptedScanPathList - The locations to scan for classes to bind
      rejectedScanPathList - The locations to exclude from the scan
      extraInterfaceList - The extra interface for which consider implementations as useful classes to load
      Returns:
      Scan result
      Since:
      1.0.0
    • 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
      Since:
      1.0.0
    • persistClassesToLoad

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