Interface ResourceManager

All Superinterfaces:
AutoCloseable, Closeable
All Known Implementing Classes:
CachingResourceManager, ClassPathResourceManager, FileResourceManager, PathResourceManager

public interface ResourceManager extends Closeable
Representation of a resource manager. A resource manager knows how to obtain a resource for a given path.
Author:
Stuart Douglas
  • Field Details

    • EMPTY_RESOURCE_MANAGER

      static final ResourceManager EMPTY_RESOURCE_MANAGER
  • Method Details

    • getResource

      Resource getResource(String path) throws IOException
      Returns a resource for the given path. It is the responsibility of the called to make sure that the path in Canonicalised.
      Parameters:
      path - The path
      Returns:
      The resource representing the path, or null if no resource was found.
      Throws:
      IOException