Package org.jvnet.basicjaxb.config
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
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.
-
Nested Class Summary
-
Method Summary
Methods inherited from interface java.util.Map
clear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
-
Method Details
-
load
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.
-