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(String key)
For PropertySources that cannot iterate over all the potential properties this provides a direct lookup.
|
default void |
forEach(BiConsumer<String,String> action)
Iterates over all properties and performs an action for each key/value pair.
|
default CharSequence |
getNormalForm(Iterable<? extends 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 String |
getProperty(String key)
For PropertySources that cannot iterate over all the potential properties this provides a direct lookup.
|
int getPriority()
default void forEach(BiConsumer<String,String> action)
action
- action to perform on each key/value pairdefault CharSequence getNormalForm(Iterable<? extends CharSequence> tokens)
tokens
- list of property name tokensdefault String getProperty(String key)
key
- The key to search for.default boolean containsProperty(String key)
key
- The key to search for.Copyright © 1999-1969 The Apache Software Foundation. All Rights Reserved.
Apache Logging, Apache Log4j, Log4j, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.