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 as PropertiesPropertySource.
Since:
2.10.0
  • Constructor Details

    • PropertyFilePropertySource

      public PropertyFilePropertySource(String fileName)
  • Method Details

    • loadPropertiesFile

      private static Properties loadPropertiesFile(String fileName)
    • 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 interface PropertySource
      Overrides:
      getPriority in class PropertiesPropertySource
      Returns:
      priority value