Class ResourceFinder

java.lang.Object
com.axelor.common.reflections.ResourceFinder

public final class ResourceFinder extends Object
The ResourceFinder class provides fluent api to search for resources.
  • Method Details

    • byName

      public ResourceFinder byName(String pattern)
      Find with the given name pattern.
      Parameters:
      pattern - the name pattern
      Returns:
      the same finder
    • byURL

      public ResourceFinder byURL(String pattern)
      Find with the given URL pattern.
      Parameters:
      pattern - the URL pattern
      Returns:
      the same finder
    • match

      public List<URL> match()
      Search the resources by full pattern match using Matcher.matches() call.
      Returns:
      list of URL objects
    • find

      public List<URL> find()
      Search the resources by partial match using Matcher.find() call.
      Returns:
      list of URL objects