Class MetaScanner


  • public final class MetaScanner
    extends Object
    This class provides some utility methods to scan class path for resources/classes.
    • Method Detail

      • findModuleProperties

        public static List<Properties> findModuleProperties()
        Find module properties within the class paths.
        Returns:
        list of module properties
      • findAll

        public static List<URL> findAll​(String pattern)
        Find all resources matched by the given pattern.
        Parameters:
        pattern - the resource name pattern to match
        Returns:
        list of resources matched
      • findAll

        public static List<URL> findAll​(String module,
                                        String directory,
                                        String pattern)
        Find all resources within a directory of the given module matching the given pattern.
        Parameters:
        module - the module name
        directory - the resource directory name
        pattern - the resource name pattern to match
        Returns:
        list of resources matched