Class ClassesToLoadScanner
java.lang.Object
dev.voidframework.core.classestoload.ClassesToLoadScanner
Classpath scanner to fin classes to load.
- Since:
- 1.0.0
-
Method Summary
Modifier and TypeMethodDescriptionstatic ScannedClassesToLoadfindClassesToLoad(List<String> acceptedScanPathList, List<String> rejectedScanPathList, List<String> extraInterfaceList) Scan given paths to find classes to bind.static voidpersistClassesToLoad(ScannedClassesToLoad scannedClassesToLoad, Path outputDirectoryPath) Persists aScannedClassesToLoadobject.static ScannedClassesToLoadrestoreClassesToLoad(InputStream inputStream) Restore aScannedClassesToLoadfrom the given stream.
-
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 bindrejectedScanPathList- The locations to exclude from the scanextraInterfaceList- The extra interface for which consider implementations as useful classes to load- Returns:
- Scan result
- Since:
- 1.0.0
-
restoreClassesToLoad
Restore aScannedClassesToLoadfrom the given stream.- Parameters:
inputStream- The stream to use to restoreScannedClassesToLoad- Returns:
- Restored
ScannedClassesToLoad - Since:
- 1.0.0
-
persistClassesToLoad
public static void persistClassesToLoad(ScannedClassesToLoad scannedClassesToLoad, Path outputDirectoryPath) Persists aScannedClassesToLoadobject.- Parameters:
scannedClassesToLoad- TheScannedClassesToLoadobject to persistoutputDirectoryPath- Output directory- Since:
- 1.0.0
-