org.apache.commons.configuration
Class ConfigurationFactory.BasePathConfigurationFactory

java.lang.Object
  extended byorg.apache.commons.digester.AbstractObjectCreationFactory
      extended byorg.apache.commons.configuration.ConfigurationFactory.DigesterConfigurationFactory
          extended byorg.apache.commons.configuration.ConfigurationFactory.BasePathConfigurationFactory
All Implemented Interfaces:
org.apache.commons.digester.ObjectCreationFactory
Enclosing class:
ConfigurationFactory

public class ConfigurationFactory.BasePathConfigurationFactory
extends ConfigurationFactory.DigesterConfigurationFactory

A tiny inner class that allows the Configuration Factory to let the digester construct BasePathConfiguration objects that already have the correct base Path set.


Field Summary
 
Fields inherited from class org.apache.commons.configuration.ConfigurationFactory.DigesterConfigurationFactory
 
Fields inherited from class org.apache.commons.digester.AbstractObjectCreationFactory
digester
 
Constructor Summary
ConfigurationFactory.BasePathConfigurationFactory(java.lang.Class clazz)
          C'tor
 
Method Summary
 java.lang.Object createObject(org.xml.sax.Attributes attributes)
          Gets called by the digester.
 
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
 

Constructor Detail

ConfigurationFactory.BasePathConfigurationFactory

public ConfigurationFactory.BasePathConfigurationFactory(java.lang.Class clazz)
C'tor

Parameters:
clazz - The class which we should instantiate.
Method Detail

createObject

public java.lang.Object createObject(org.xml.sax.Attributes attributes)
                              throws java.lang.Exception
Gets called by the digester.

Specified by:
createObject in interface org.apache.commons.digester.ObjectCreationFactory
Overrides:
createObject in class ConfigurationFactory.DigesterConfigurationFactory
Parameters:
attributes - the actual attributes
Returns:
the new object
Throws:
java.lang.Exception - Couldn't instantiate the requested object.