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
public class PropertyFilePropertySource extends PropertiesPropertySource
PropertySource backed by a properties file. Follows the same conventions asPropertiesPropertySource
.- 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 Constructor Description PropertyFilePropertySource(String fileName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getPriority()
Returns the order in which this PropertySource has priority.-
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 Detail
-
PropertyFilePropertySource
public PropertyFilePropertySource(String fileName)
-
-
Method Detail
-
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
-
-