Class RunTimeScan

java.lang.Object
org.apache.drill.common.scanner.RunTimeScan

public class RunTimeScan extends Object
Utility to scan classpath at runtime
  • Constructor Details

    • RunTimeScan

      public RunTimeScan()
  • Method Details

    • fromPrescan

      public static ScanResult fromPrescan(DrillConfig config)
      Loads prescanned classpath info and scans for extra ones based on configuration. (unless prescan is disabled with ClassPathScanner.IMPLEMENTATIONS_SCAN_CACHE=false)
      Parameters:
      config - to retrieve the packages to scan
      Returns:
      the scan result
    • dynamicPackageScan

      public static ScanResult dynamicPackageScan(DrillConfig config, Set<URL> markedPath)
      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 scan
      markedPath - list of paths where to scan
      Returns:
      the scan result with list of packages, classes and annotations found