Package org.apache.commons.configuration
Class ConfigurationFactory.DigesterConfigurationFactory
- java.lang.Object
-
- org.apache.commons.digester.AbstractObjectCreationFactory
-
- org.apache.commons.configuration.ConfigurationFactory.DigesterConfigurationFactory
-
- All Implemented Interfaces:
org.apache.commons.digester.ObjectCreationFactory
- Direct Known Subclasses:
ConfigurationFactory.FileConfigurationFactory
- Enclosing class:
- ConfigurationFactory
public class ConfigurationFactory.DigesterConfigurationFactory extends org.apache.commons.digester.AbstractObjectCreationFactory
A base class for digester factory classes. This base class maintains a default class for the objects to be created. There will be sub classes for specific configuration implementations.
-
-
Constructor Summary
Constructors Constructor Description DigesterConfigurationFactory(java.lang.Class<?> clazz)
Creates a new instance ofDigesterConfigurationFactory
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
createObject(org.xml.sax.Attributes attribs)
Creates an instance of the specified class.
-
-
-
Constructor Detail
-
DigesterConfigurationFactory
public DigesterConfigurationFactory(java.lang.Class<?> clazz)
Creates a new instance ofDigesterConfigurationFactory
.- Parameters:
clazz
- the class which we should instantiate
-
-
Method Detail
-
createObject
public java.lang.Object createObject(org.xml.sax.Attributes attribs) throws java.lang.Exception
Creates an instance of the specified class.- Specified by:
createObject
in interfaceorg.apache.commons.digester.ObjectCreationFactory
- Specified by:
createObject
in classorg.apache.commons.digester.AbstractObjectCreationFactory
- Parameters:
attribs
- the attributes (ignored)- Returns:
- the new object
- Throws:
java.lang.Exception
- if object creation fails
-
-