org.apache.commons.configuration

Class ConfigurationFactory.PropertiesConfigurationFactory

public class ConfigurationFactory.PropertiesConfigurationFactory extends ConfigurationFactory.FileConfigurationFactory

A factory that returns an XMLPropertiesConfiguration for .xml files and a PropertiesConfiguration for the others.

Since: 1.2

Constructor Summary
PropertiesConfigurationFactory()
Creates a new instance of PropertiesConfigurationFactory.
Method Summary
protected FileConfigurationcreateConfiguration(Attributes attributes)
Creates the new configuration object.

Constructor Detail

PropertiesConfigurationFactory

public PropertiesConfigurationFactory()
Creates a new instance of PropertiesConfigurationFactory.

Method Detail

createConfiguration

protected FileConfiguration createConfiguration(Attributes attributes)
Creates the new configuration object. Based on the file name provided in the attributes either a PropertiesConfiguration or a XMLPropertiesConfiguration object will be returned.

Parameters: attributes the attributes

Returns: the new configuration object

Throws: Exception if an error occurs