Package org.apache.logging.log4j.util
Class PropertyFilePropertySource
java.lang.Object
org.apache.logging.log4j.util.PropertiesPropertySource
org.apache.logging.log4j.util.PropertyFilePropertySource
- All Implemented Interfaces:
PropertySource
PropertySource backed by a properties file. Follows the same conventions as
PropertiesPropertySource
.- Since:
- 2.10.0
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.logging.log4j.util.PropertySource
PropertySource.Comparator, PropertySource.Util
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
Returns the order in which this PropertySource has priority.private static Properties
loadPropertiesFile
(String fileName) Methods inherited from class org.apache.logging.log4j.util.PropertiesPropertySource
forEach, getNormalForm
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.logging.log4j.util.PropertySource
containsProperty, getProperty
-
Constructor Details
-
PropertyFilePropertySource
-
-
Method Details
-
loadPropertiesFile
-
getPriority
public int getPriority()Description copied from interface:PropertySource
Returns the order in which this PropertySource has priority. A higher value means that the source will be applied later so as to take precedence over other property sources.- Specified by:
getPriority
in interfacePropertySource
- Overrides:
getPriority
in classPropertiesPropertySource
- Returns:
- priority value
-