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.
| Modifier and Type | Field and Description |
|---|---|
| private static final int | |
| private static final String |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | containsProperty(final String
The key to search for. key)Overrides default org. For PropertySources that cannot iterate over all the potential properties this provides a direct lookup. |
| public void | forEach(final BiConsumer<String, String>
action to perform on each key/value pair action)Overrides default org. Iterates over all properties and performs an action for each key/value pair. |
| public CharSequence | getNormalForm(final Iterable<? extends CharSequence>
list of property name tokens tokens)Overrides default org. Converts a list of property name tokens into a normal form. |
| public int | getPriority()
Implements org. Returns the order in which this PropertySource has priority. |
| public String | getProperty(final String
The key to search for. key)Overrides default org. For PropertySources that cannot iterate over all the potential properties this provides a direct lookup. |
| public Collection | getPropertyNames()
Overrides default org. Returns the list of all property names. |
| private void |
| DEFAULT_PRIORITY | back to summary |
|---|---|
| private static final int DEFAULT_PRIORITY | |
| PREFIX | back to summary |
|---|---|
| private static final String PREFIX | |
| EnvironmentPropertySource | back to summary |
|---|---|
| public EnvironmentPropertySource() | |
| containsProperty | back to summary |
|---|---|
| public boolean containsProperty(final String key) Overrides default org. Doc from org. For PropertySources that cannot iterate over all the potential properties this provides a direct lookup. | |
| forEach | back to summary |
|---|---|
| public void forEach(final BiConsumer<String, String> action) Overrides default org. Doc from org. Iterates over all properties and performs an action for each key/value pair.
| |
| getNormalForm | back to summary |
|---|---|
| public CharSequence getNormalForm(final Iterable<? extends CharSequence> tokens) Overrides default org. Doc from org. Converts a list of property name tokens into a normal form. For example, a list of tokens such as "foo", "bar", "baz", might be normalized into the property name "log4j2.fooBarBaz".
| |
| getPriority | back to summary |
|---|---|
| public int getPriority() Implements org. Doc from org. Returns the order in which this PropertySource has priority. A higher value means that the source will be searched later and can be overridden by other property sources.
| |
| getProperty | back to summary |
|---|---|
| public String getProperty(final String key) Overrides default org. Doc from org. For PropertySources that cannot iterate over all the potential properties this provides a direct lookup. | |
| getPropertyNames | back to summary |
|---|---|
| public Collection Overrides default org. Doc from org. Returns the list of all property names.
| |
| logException | back to summary |
|---|---|
| private void logException(final SecurityException e) | |