Interface ResourceProvider


public interface ResourceProvider
A facility to obtain loadable resources.
  • Method Details

    • getResource

      LoadableResource getResource(String name)
      Retrieves the resource with this name.
      Parameters:
      name - The name of the resource.
      Returns:
      The resource or null if not found.
    • getResources

      Collection<LoadableResource> getResources(String prefix, String[] suffixes)
      Retrieve all resources whose name begins with this prefix and ends with any of these suffixes.
      Parameters:
      prefix - The prefix.
      suffixes - The suffixes.
      Returns:
      The matching resources.