org.apache.logging.log4j.core.config
Class XMLConfigurationFactory

java.lang.Object
  extended by org.apache.logging.log4j.core.config.ConfigurationFactory
      extended by org.apache.logging.log4j.core.config.XMLConfigurationFactory

public class XMLConfigurationFactory
extends ConfigurationFactory

Factory to coonstruct an XMLConfiguration.


Field Summary
static String[] SUFFIXES
          Valid file extensions for XML files.
 
Fields inherited from class org.apache.logging.log4j.core.config.ConfigurationFactory
configFile, CONFIGURATION_FACTORY_PROPERTY, CONFIGURATION_FILE_PROPERTY, DEFAULT_PREFIX, LOGGER, TEST_PREFIX
 
Constructor Summary
XMLConfigurationFactory()
           
 
Method Summary
 Configuration getConfiguration(InputSource source)
          Return the Configuration.
 String[] getSupportedTypes()
          Returns the file suffixes for XML files.
 
Methods inherited from class org.apache.logging.log4j.core.config.ConfigurationFactory
getConfiguration, getInputFromResource, getInputFromString, getInputFromURI, getInstance, isActive, removeConfigurationFactory, resetConfigurationFactory, setConfigurationFactory
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SUFFIXES

public static final String[] SUFFIXES
Valid file extensions for XML files.

Constructor Detail

XMLConfigurationFactory

public XMLConfigurationFactory()
Method Detail

getConfiguration

public Configuration getConfiguration(InputSource source)
Return the Configuration.

Specified by:
getConfiguration in class ConfigurationFactory
Parameters:
source - The InputSource.
Returns:
The Configuration.

getSupportedTypes

public String[] getSupportedTypes()
Returns the file suffixes for XML files.

Specified by:
getSupportedTypes in class ConfigurationFactory
Returns:
An array of File extensions.


Copyright © 1999-2012 Apache Software Foundation. All Rights Reserved.