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(String[] acceptedScanPaths, String[] rejectedScanPaths, List<String> extraInterfaces) 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(String[] acceptedScanPaths, String[] rejectedScanPaths, List<String> extraInterfaces) Scan given paths to find classes to bind.- Parameters:
acceptedScanPaths- The locations to scan for classes to bindrejectedScanPaths- The locations to exclude from the scanextraInterfaces- 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
-