Class PackageNamesScanner

    • Constructor Detail

      • PackageNamesScanner

        public PackageNamesScanner​(String[] packages,
                                   boolean recursive)
        Scan a set of packages using a context ClassLoader. The recursive flag determines whether the packages will be scanned recursively together with their nested packages (true) or if only the specified packages shall be scanned (false).
        Parameters:
        packages - an array of package names.
        recursive - if (true the packages will be scanned recursively together with any nested packages, if false only the explicitly listed packages will be scanned.
      • PackageNamesScanner

        public PackageNamesScanner​(ClassLoader classLoader,
                                   String[] packages,
                                   boolean recursive)
        Scan a set of packages using the provided ClassLoader. The recursive flag determines whether the packages will be scanned recursively together with their nested packages (true) or if only the specified packages shall be scanned (false).
        Parameters:
        classLoader - the ClassLoader to load classes from.
        packages - an array of package names.
        recursive - if (true the packages will be scanned recursively together with any nested packages, if false only the explicitly listed packages will be scanned.