Class ResourceFinderDirectories

java.lang.Object
rife.resources.AbstractResourceFinder
rife.resources.ResourceFinderDirectories
All Implemented Interfaces:
ResourceFinder

public class ResourceFinderDirectories extends AbstractResourceFinder
This class offers ResourceFinder capabilities for resources that are available through a collection of directories.

The resources are looked up in the same order as the order in which the directories were specified. This means that if a resource is found in the first directory, but it is also present in the second, only the first one will match.

Since:
1.0
See Also:
  • Constructor Details

    • ResourceFinderDirectories

      public ResourceFinderDirectories(File... directories)
      Creates a new instance for the provided array of directories.
      Parameters:
      directories - the directories where the resources should be searched in.
      Since:
      1.0
  • Method Details