org.apache.commons.configuration

Class ConfigurationFactory.FileConfigurationFactory

public class ConfigurationFactory.FileConfigurationFactory extends ConfigurationFactory.DigesterConfigurationFactory

A tiny inner class that allows the Configuration Factory to let the digester construct FileConfiguration objects that already have the correct base Path set.
Constructor Summary
FileConfigurationFactory(Class clazz)
C'tor
Method Summary
protected FileConfigurationcreateConfiguration(Attributes attributes)
Creates the object, a FileConfiguration.
ObjectcreateObject(Attributes attributes)
Gets called by the digester.

Constructor Detail

FileConfigurationFactory

public FileConfigurationFactory(Class clazz)
C'tor

Parameters: clazz The class which we should instantiate.

Method Detail

createConfiguration

protected FileConfiguration createConfiguration(Attributes attributes)
Creates the object, a FileConfiguration.

Parameters: attributes the actual attributes

Returns: the file configuration

Throws: Exception if the object could not be created

createObject

public Object createObject(Attributes attributes)
Gets called by the digester.

Parameters: attributes the actual attributes

Returns: the new object

Throws: Exception Couldn't instantiate the requested object.