Class SpringPropertySource

  • All Implemented Interfaces:
    org.apache.logging.log4j.util.PropertySource

    public class SpringPropertySource
    extends SpringEnvironmentHolder
    implements org.apache.logging.log4j.util.PropertySource
    Returns properties from Spring.
    • Method Detail

      • getPriority

        public int getPriority()
        System properties take precendence followed by properties in Log4j properties files. Spring properties follow.
        Specified by:
        getPriority in interface org.apache.logging.log4j.util.PropertySource
        Returns:
        This PropertySource's priority.
      • getProperty

        public String getProperty​(String key)
        Specified by:
        getProperty in interface org.apache.logging.log4j.util.PropertySource
      • containsProperty

        public boolean containsProperty​(String key)
        Specified by:
        containsProperty in interface org.apache.logging.log4j.util.PropertySource