public class DefaultConfigurationFactory
extends org.apache.logging.log4j.core.config.ConfigurationFactory
During initialization, Log4j 2 will search for available ConfigurationFactories and then select the one to use. The selected ConfigurationFactory creates the Configuration that Log4j will use. Here is how Log4j finds the available ConfigurationFactories:
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String[] |
CONFIG_FILES_TYPES
Valid file extensions for Configuration files.
|
| Constructor and Description |
|---|
DefaultConfigurationFactory(PropertiesLoader propertiesLoader) |
| Modifier and Type | Method and Description |
|---|---|
org.apache.logging.log4j.core.config.Configuration |
getConfiguration(org.apache.logging.log4j.core.LoggerContext loggerContext,
org.apache.logging.log4j.core.config.ConfigurationSource source) |
org.apache.logging.log4j.core.config.Configuration |
getConfiguration(org.apache.logging.log4j.core.LoggerContext loggerContext,
java.lang.String name,
java.net.URI configLocation) |
PropertiesLoader |
getPropertiesLoader() |
protected java.lang.String[] |
getSupportedTypes() |
getConfiguration, getInputFromString, getInstance, isActive, removeConfigurationFactory, resetConfigurationFactory, setConfigurationFactorypublic static final java.lang.String[] CONFIG_FILES_TYPES
public DefaultConfigurationFactory(PropertiesLoader propertiesLoader)
protected java.lang.String[] getSupportedTypes()
getSupportedTypes in class org.apache.logging.log4j.core.config.ConfigurationFactorypublic org.apache.logging.log4j.core.config.Configuration getConfiguration(org.apache.logging.log4j.core.LoggerContext loggerContext,
org.apache.logging.log4j.core.config.ConfigurationSource source)
getConfiguration in class org.apache.logging.log4j.core.config.ConfigurationFactorypublic org.apache.logging.log4j.core.config.Configuration getConfiguration(org.apache.logging.log4j.core.LoggerContext loggerContext,
java.lang.String name,
java.net.URI configLocation)
getConfiguration in class org.apache.logging.log4j.core.config.ConfigurationFactorypublic PropertiesLoader getPropertiesLoader()