Package org.apache.drill.common.scanner
Class RunTimeScan
java.lang.Object
org.apache.drill.common.scanner.RunTimeScan
Utility to scan classpath at runtime
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ScanResult
dynamicPackageScan
(DrillConfig config, Set<URL> markedPath) Scans packages retrieved from config.static ScanResult
fromPrescan
(DrillConfig config) Loads prescanned classpath info and scans for extra ones based on configuration.
-
Constructor Details
-
RunTimeScan
public RunTimeScan()
-
-
Method Details
-
fromPrescan
Loads prescanned classpath info and scans for extra ones based on configuration. (unless prescan is disabled withClassPathScanner.IMPLEMENTATIONS_SCAN_CACHE
=false
)- Parameters:
config
- to retrieve the packages to scan- Returns:
- the scan result
-
dynamicPackageScan
Scans packages retrieved from config. Returns scan result with list of packages, classes and annotations found. Is used to scan specific jars not associated with classpath at runtime.- Parameters:
config
- to retrieve the packages to scanmarkedPath
- list of paths where to scan- Returns:
- the scan result with list of packages, classes and annotations found
-