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 TypeMethodDescriptionintReturns the order in which this PropertySource has priority.private static PropertiesloadPropertiesFile(String fileName) Methods inherited from class org.apache.logging.log4j.util.PropertiesPropertySource
forEach, getNormalFormMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:PropertySourceReturns 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:
getPriorityin interfacePropertySource- Overrides:
getPriorityin classPropertiesPropertySource- Returns:
- priority value
-