Class XmlConfigurationFactory


  • @Plugin(name="XmlConfigurationFactory",
            category="ConfigurationFactory")
    public class XmlConfigurationFactory
    extends org.apache.logging.log4j.core.config.ConfigurationFactory
    Creates a XmlConfiguration from a xml file. The order is 50 so this XmlConfigurationFactory factory is loaded before XmlConfigurationFactory is loaded.
    • Field Summary

      • Fields inherited from class org.apache.logging.log4j.core.config.ConfigurationFactory

        AUTHORIZATION_PROVIDER, CATEGORY, CONFIGURATION_FACTORY_PROPERTY, CONFIGURATION_FILE_PROPERTY, DEFAULT_PREFIX, LOG4J1_CONFIGURATION_FILE_PROPERTY, LOG4J1_EXPERIMENTAL, LOG4J1_VERSION, LOG4J2_VERSION, LOGGER, substitutor, TEST_PREFIX
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.apache.logging.log4j.core.config.Configuration getConfiguration​(org.apache.logging.log4j.core.LoggerContext loggerContext, String name, URI configLocation)
      Returns the Configuration.
      org.apache.logging.log4j.core.config.Configuration getConfiguration​(org.apache.logging.log4j.core.LoggerContext loggerContext, org.apache.logging.log4j.core.config.ConfigurationSource source)
      Returns the Configuration.
      protected String[] getSupportedTypes()  
      • Methods inherited from class org.apache.logging.log4j.core.config.ConfigurationFactory

        authorizationProvider, getAuthorizationProvider, getConfiguration, getDefaultPrefix, getInputFromString, getInstance, getTestPrefix, getVersion, isActive, removeConfigurationFactory, resetConfigurationFactory, setConfigurationFactory
      • Methods inherited from class org.apache.logging.log4j.core.config.builder.api.ConfigurationBuilderFactory

        newConfigurationBuilder, newConfigurationBuilder
    • Constructor Detail

      • XmlConfigurationFactory

        public XmlConfigurationFactory()
    • Method Detail

      • getSupportedTypes

        protected String[] getSupportedTypes()
        Specified by:
        getSupportedTypes in class org.apache.logging.log4j.core.config.ConfigurationFactory
      • getConfiguration

        public org.apache.logging.log4j.core.config.Configuration getConfiguration​(org.apache.logging.log4j.core.LoggerContext loggerContext,
                                                                                   org.apache.logging.log4j.core.config.ConfigurationSource source)
        Returns the Configuration.
        Specified by:
        getConfiguration in class org.apache.logging.log4j.core.config.ConfigurationFactory
        Parameters:
        loggerContext - The logger context
        source - The ConfigurationSource
        Returns:
        The Configuration
      • getConfiguration

        public org.apache.logging.log4j.core.config.Configuration getConfiguration​(org.apache.logging.log4j.core.LoggerContext loggerContext,
                                                                                   String name,
                                                                                   URI configLocation)
        Returns the Configuration.
        Overrides:
        getConfiguration in class org.apache.logging.log4j.core.config.ConfigurationFactory
        Parameters:
        loggerContext - The logger context
        name - The configuration name
        configLocation - The initial configuration location or null
        Returns:
        The Configuration