Class XmlConfigurationFactory
java.lang.Object
org.apache.logging.log4j.core.config.builder.api.ConfigurationBuilderFactory
org.apache.logging.log4j.core.config.ConfigurationFactory
org.infinispan.commons.logging.log4j.XmlConfigurationFactory
@Plugin(name="XmlConfigurationFactory",
category="ConfigurationFactory")
public class XmlConfigurationFactory
extends org.apache.logging.log4j.core.config.ConfigurationFactory
-
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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.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.String[]
Returns the file suffixes for XML files.Methods inherited from class org.apache.logging.log4j.core.config.ConfigurationFactory
authorizationProvider, getAuthorizationProvider, getConfiguration, 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
-
Field Details
-
SUFFIXES
Valid file extensions for XML files.
-
-
Constructor Details
-
XmlConfigurationFactory
public XmlConfigurationFactory()
-
-
Method Details
-
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 classorg.apache.logging.log4j.core.config.ConfigurationFactory
- Parameters:
loggerContext
- The logger context.source
- The InputSource.- Returns:
- The Configuration.
-
getSupportedTypes
Returns the file suffixes for XML files.- Specified by:
getSupportedTypes
in classorg.apache.logging.log4j.core.config.ConfigurationFactory
- Returns:
- An array of File extensions.
-