org.opencms.configuration
Class CmsDigesterResourceTypeCreationFactory

java.lang.Object
  extended by org.apache.commons.digester.AbstractObjectCreationFactory
      extended by org.opencms.configuration.CmsDigesterResourceTypeCreationFactory
All Implemented Interfaces:
org.apache.commons.digester.ObjectCreationFactory

public class CmsDigesterResourceTypeCreationFactory
extends org.apache.commons.digester.AbstractObjectCreationFactory

Factory to create resource type instances from the XML configuration.

This is required because the default digester implementation will cause an exception in case a resource type class is missing. However, a missing class is common if a module with a new resource type class is imported. In this case, the resource type class is changes to CmsResourceTypeUnknown, so that the import of the resources can proceed.

Since:
6.0.2
Version:
$Revision: 1.9 $
Author:
Alexander Kandzior

Field Summary
 
Fields inherited from class org.apache.commons.digester.AbstractObjectCreationFactory
digester
 
Constructor Summary
CmsDigesterResourceTypeCreationFactory()
          Default constructor for the resource type configuration factory.
 
Method Summary
 java.lang.Object createObject(org.xml.sax.Attributes attributes)
           
 
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
 

Constructor Detail

CmsDigesterResourceTypeCreationFactory

public CmsDigesterResourceTypeCreationFactory()
Default constructor for the resource type configuration factory.

Method Detail

createObject

public java.lang.Object createObject(org.xml.sax.Attributes attributes)
                              throws java.lang.Exception
Specified by:
createObject in interface org.apache.commons.digester.ObjectCreationFactory
Specified by:
createObject in class org.apache.commons.digester.AbstractObjectCreationFactory
Throws:
java.lang.Exception
See Also:
ObjectCreationFactory.createObject(org.xml.sax.Attributes)