org.opencms.configuration
Class CmsDigesterResourceTypeCreationFactory
java.lang.Object
org.apache.commons.digester.AbstractObjectCreationFactory
org.opencms.configuration.CmsDigesterResourceTypeCreationFactory
- All Implemented Interfaces:
- org.apache.commons.digester.ObjectCreationFactory
public class CmsDigesterResourceTypeCreationFactory
- extends org.apache.commons.digester.AbstractObjectCreationFactory
- implements org.apache.commons.digester.ObjectCreationFactory
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.2 $
- Author:
- Alexander Kandzior
Fields inherited from class org.apache.commons.digester.AbstractObjectCreationFactory |
digester |
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 |
Methods inherited from interface org.apache.commons.digester.ObjectCreationFactory |
getDigester, setDigester |
CmsDigesterResourceTypeCreationFactory
public CmsDigesterResourceTypeCreationFactory()
- Default constructor for the resource type configuration factory.
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)