Package org.apache.commons.configuration
Class ConfigurationFactory.FileConfigurationFactory
java.lang.Object
org.apache.commons.digester.AbstractObjectCreationFactory
org.apache.commons.configuration.ConfigurationFactory.DigesterConfigurationFactory
org.apache.commons.configuration.ConfigurationFactory.FileConfigurationFactory
- All Implemented Interfaces:
org.apache.commons.digester.ObjectCreationFactory
- Direct Known Subclasses:
ConfigurationFactory.PropertiesConfigurationFactory
,ConfigurationFactory.PropertyListConfigurationFactory
- Enclosing class:
- ConfigurationFactory
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.
-
Field Summary
Fields inherited from class org.apache.commons.digester.AbstractObjectCreationFactory
digester
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected FileConfiguration
createConfiguration
(Attributes attributes) Creates the object, aFileConfiguration
.createObject
(Attributes attributes) Gets called by the digester.Methods inherited from class org.apache.commons.digester.AbstractObjectCreationFactory
getDigester, setDigester
-
Constructor Details
-
FileConfigurationFactory
C'tor- Parameters:
clazz
- The class which we should instantiate.
-
-
Method Details
-
createObject
Gets called by the digester.- Specified by:
createObject
in interfaceorg.apache.commons.digester.ObjectCreationFactory
- Overrides:
createObject
in classConfigurationFactory.DigesterConfigurationFactory
- Parameters:
attributes
- the actual attributes- Returns:
- the new object
- Throws:
Exception
- Couldn't instantiate the requested object.
-
createConfiguration
Creates the object, aFileConfiguration
.- Parameters:
attributes
- the actual attributes- Returns:
- the file configuration
- Throws:
Exception
- if the object could not be created
-