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.BasePathConfigurationFactory, ConfigurationFactory.JNDIConfigurationFactory
- Enclosing class:
- ConfigurationFactory
- public class ConfigurationFactory.DigesterConfigurationFactory
- extends org.apache.commons.digester.AbstractObjectCreationFactory
- implements org.apache.commons.digester.ObjectCreationFactory
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.
Field Summary |
private java.lang.Class |
clazz
Actual class to use. |
Fields inherited from class org.apache.commons.digester.AbstractObjectCreationFactory |
digester |
Method Summary |
java.lang.Object |
createObject(org.xml.sax.Attributes attribs)
Creates an instance of the specified class. |
Methods inherited from class org.apache.commons.digester.AbstractObjectCreationFactory |
getDigester, setDigester |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.commons.digester.ObjectCreationFactory |
getDigester, setDigester |
clazz
private java.lang.Class clazz
- Actual class to use.
ConfigurationFactory.DigesterConfigurationFactory
public ConfigurationFactory.DigesterConfigurationFactory(java.lang.Class clazz)
- Creates a new instance of
DigesterConfigurationFactory
.
- Parameters:
clazz
- the class which we should instantiate
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 interface org.apache.commons.digester.ObjectCreationFactory
- Parameters:
attribs
- the attributes (ignored)
- Returns:
- the new object
- Throws:
java.lang.Exception
- if object creation fails