public interface PropertySource
Modifier and Type | Interface and Description |
---|---|
static class |
PropertySource.Comparator
Comparator for ordering PropertySource instances by priority.
|
static class |
PropertySource.Util
Utility methods useful for PropertySource implementations.
|
Modifier and Type | Method and Description |
---|---|
default boolean |
containsProperty(java.lang.String key)
For PropertySources that cannot iterate over all the potential properties this provides a direct lookup.
|
default void |
forEach(BiConsumer<java.lang.String,java.lang.String> action)
Iterates over all properties and performs an action for each key/value pair.
|
default java.lang.CharSequence |
getNormalForm(java.lang.Iterable<? extends java.lang.CharSequence> tokens)
Converts a list of property name tokens into a normal form.
|
int |
getPriority()
Returns the order in which this PropertySource has priority.
|
default java.lang.String |
getProperty(java.lang.String key)
For PropertySources that cannot iterate over all the potential properties this provides a direct lookup.
|
int getPriority()
default void forEach(BiConsumer<java.lang.String,java.lang.String> action)
action
- action to perform on each key/value pairdefault java.lang.CharSequence getNormalForm(java.lang.Iterable<? extends java.lang.CharSequence> tokens)
tokens
- list of property name tokensdefault java.lang.String getProperty(java.lang.String key)
key
- The key to search for.default boolean containsProperty(java.lang.String key)
key
- The key to search for.