Class ClassPath

    • Method Detail

      • scan

        public void scan​(List<File> files,
                         boolean scanForNestedJARs,
                         String[] blacklist)
      • handleBundle

        public File handleBundle​(BundleFile bf)
        Description copied from interface: ClassPathScanner.Callback
        A Bundle was found on the class path. Usually a callback should handle this by adding the Bundle to a class loader and installing it in an OSGi framework

        The callback should return a directory to be used to extract nested JARs from this JAR.

        The callback may return null to skip nested JAR extraction.

        Specified by:
        handleBundle in interface ClassPathScanner.Callback
        Parameters:
        bf - the JAR found
        Returns:
        the folder to be used to extract JARs or null to skip extraction
      • handleJar

        public File handleJar​(BundleFile bf)
        Description copied from interface: ClassPathScanner.Callback
        A JAR was found on the class path. Usually a callback should handle this by adding the JAR to a class loader.

        The callback should return a directory to be used to extract nested JARs from this JAR.

        The callback may return null to skip nested JAR extraction.

        Specified by:
        handleJar in interface ClassPathScanner.Callback
        Parameters:
        bf - the JAR found
        Returns:
        the folder to be used to extract JARs or null to skip extraction
      • handleNestedJar

        public void handleNestedJar​(BundleFile bf)
        Description copied from interface: ClassPathScanner.Callback
        A nested JAR was found on the class path. Usually a callback should handle this by adding the JAR to a class loader

        The callback should return a directory to be used to extract nested JARs from this JAR.

        The callback may return null to skip nested JAR extraction

        Specified by:
        handleNestedJar in interface ClassPathScanner.Callback
        Parameters:
        bf - the JAR found