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 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 PropertiesPropertySource
forEach, getNormalFormMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface 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
-