Package org.apache.commons.configuration
Class ConfigurationFactory.PropertyListConfigurationFactory
- java.lang.Object
-
- org.apache.commons.digester.AbstractObjectCreationFactory
-
- org.apache.commons.configuration.ConfigurationFactory.DigesterConfigurationFactory
-
- org.apache.commons.configuration.ConfigurationFactory.FileConfigurationFactory
-
- org.apache.commons.configuration.ConfigurationFactory.PropertyListConfigurationFactory
-
- All Implemented Interfaces:
org.apache.commons.digester.ObjectCreationFactory
- Enclosing class:
- ConfigurationFactory
public class ConfigurationFactory.PropertyListConfigurationFactory extends ConfigurationFactory.FileConfigurationFactory
A factory that returns an XMLPropertyListConfiguration for .xml files and a PropertyListConfiguration for the others.- Since:
- 1.2
-
-
Constructor Summary
Constructors Constructor Description PropertyListConfigurationFactory()
Creates a new instance of PropertyListConfigurationFactory.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected FileConfiguration
createConfiguration(org.xml.sax.Attributes attributes)
Creates the new configuration object.-
Methods inherited from class org.apache.commons.configuration.ConfigurationFactory.FileConfigurationFactory
createObject
-
-
-
-
Constructor Detail
-
PropertyListConfigurationFactory
public PropertyListConfigurationFactory()
Creates a new instance of PropertyListConfigurationFactory.
-
-
Method Detail
-
createConfiguration
protected FileConfiguration createConfiguration(org.xml.sax.Attributes attributes) throws java.lang.Exception
Creates the new configuration object. Based on the file name provided in the attributes either aXMLPropertyListConfiguration
or aPropertyListConfiguration
object will be returned.- Overrides:
createConfiguration
in classConfigurationFactory.FileConfigurationFactory
- Parameters:
attributes
- the attributes- Returns:
- the new configuration object
- Throws:
java.lang.Exception
- if an error occurs
-
-