Interface LocatorLoader<K,V>

Type Parameters:
K - The key type.
V - The value type.
All Superinterfaces:
Cloneable, Map<K,V>, Serializable
All Known Implementing Classes:
LocatorProperties

public interface LocatorLoader<K,V> extends Map<K,V>, Cloneable, Serializable
An interface for a map of key-value pairs that is compatible with java.util.Properties. This interface adds a method to load properties using a string locator. The locator represents either a classpath, a URL or a file.
  • Method Details

    • load

      void load(String locator) throws IOException
      Load properties for the given locator. The locator can represent a URL or a File. If the URL protocol is "classpath:" then the properties file will be located as a resource stream.
      Parameters:
      locator - The location of a property file or resource.
      Throws:
      IOException - If an error occurred when inputting from the reader.