public class PropertiesPropertySource extends Object implements PropertySource
Properties instance. Normalized property names follow a scheme like this:
Log4jContextSelector would normalize to log4j2.contextSelector.PropertySource.Comparator, PropertySource.Util| Constructor and Description |
|---|
PropertiesPropertySource(Properties properties) |
| Modifier and Type | Method and Description |
|---|---|
void |
forEach(BiConsumer<String,String> action)
Iterates over all properties and performs an action for each key/value pair.
|
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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcontainsProperty, getPropertypublic PropertiesPropertySource(Properties properties)
public int getPriority()
PropertySourcegetPriority in interface PropertySourcepublic void forEach(BiConsumer<String,String> action)
PropertySourceforEach in interface PropertySourceaction - action to perform on each key/value pairpublic CharSequence getNormalForm(Iterable<? extends CharSequence> tokens)
PropertySourcegetNormalForm in interface PropertySourcetokens - list of property name tokensCopyright © 2021 JBoss by Red Hat. All rights reserved.