Class MetaScanner

java.lang.Object
com.axelor.meta.MetaScanner

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

    • 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
    • findSubTypesOf

      public static <T> ClassFinder<T> findSubTypesOf(Class<T> type)
      Delegates to Reflections.findSubTypesOf(Class) but searches within module paths only.
      See Also:
    • findSubTypesOf

      public static <T> ClassFinder<T> findSubTypesOf(String module, Class<T> type)
      Same as findSubTypesOf(Class) but searches only within given module.
      See Also: