Package org.openbravo.test.base
Class TestConfigurationFactory
- java.lang.Object
-
- org.apache.logging.log4j.core.config.builder.api.ConfigurationBuilderFactory
-
- org.apache.logging.log4j.core.config.ConfigurationFactory
-
- org.openbravo.test.base.TestConfigurationFactory
-
@Plugin(name="TestConfigurationFactory", category="ConfigurationFactory") public class TestConfigurationFactory extends org.apache.logging.log4j.core.config.ConfigurationFactory
Configuration Factory used in testing environment. This let us override programatically the configuration defined in log4j2-test.xml using theTestXmlLogConfiguration
class
-
-
Field Summary
Fields Modifier and Type Field Description static String[]
SUFFIXES
-
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
Constructors Constructor Description TestConfigurationFactory()
-
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, org.apache.logging.log4j.core.config.ConfigurationSource source)
protected String[]
getSupportedTypes()
-
Methods inherited from class org.apache.logging.log4j.core.config.ConfigurationFactory
authorizationProvider, getAuthorizationProvider, getConfiguration, getConfiguration, getDefaultPrefix, getInputFromString, getInstance, getTestPrefix, getVersion, isActive, removeConfigurationFactory, resetConfigurationFactory, setConfigurationFactory
-
-
-
-
Field Detail
-
SUFFIXES
public static final String[] SUFFIXES
-
-
Method Detail
-
getSupportedTypes
protected String[] getSupportedTypes()
- Specified by:
getSupportedTypes
in classorg.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)
- Specified by:
getConfiguration
in classorg.apache.logging.log4j.core.config.ConfigurationFactory
-
-