public class EnvironmentPropertySource extends Object implements PropertySource
LOG4J_
so as not to
conflict with other variables. Normalized environment variables follow a
scheme like this: log4j2.fooBarProperty
would normalize to
LOG4J_FOO_BAR_PROPERTY
.PropertySource.Comparator, PropertySource.Util
Constructor and Description |
---|
EnvironmentPropertySource() |
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, wait
containsProperty, getProperty
public EnvironmentPropertySource()
public int getPriority()
PropertySource
getPriority
in interface PropertySource
public void forEach(BiConsumer<String,String> action)
PropertySource
forEach
in interface PropertySource
action
- action to perform on each key/value pairpublic CharSequence getNormalForm(Iterable<? extends CharSequence> tokens)
PropertySource
getNormalForm
in interface PropertySource
tokens
- list of property name tokensCopyright © 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.