Properties instance. Normalized property names follow a scheme like this:
Log4jContextSelector would normalize to log4j2.contextSelector.
| Modifier and Type | Field and Description |
|---|---|
| private static final int | |
| private static final String | |
| private final int | |
| private final Properties |
| Access | Constructor and Description |
|---|---|
| public | |
| 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. |
| DEFAULT_PRIORITY | back to summary |
|---|---|
| private static final int DEFAULT_PRIORITY | |
| PREFIX | back to summary |
|---|---|
| private static final String PREFIX | |
| priority | back to summary |
|---|---|
| private final int priority | |
| properties | back to summary |
|---|---|
| private final Properties properties | |
| PropertiesPropertySource | back to summary |
|---|---|
| public PropertiesPropertySource(final Properties properties) | |
| PropertiesPropertySource | back to summary |
|---|---|
| public PropertiesPropertySource(final Properties properties, final int priority) | |
| 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.
| |