org.opencms.configuration
Class CmsDigesterResourceTypeCreationFactory
java.lang.Object
org.apache.commons.digester.AbstractObjectCreationFactory
org.opencms.configuration.CmsDigesterResourceTypeCreationFactory
- All Implemented Interfaces:
- ObjectCreationFactory
public class CmsDigesterResourceTypeCreationFactory
- extends AbstractObjectCreationFactory
- implements 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.1 $
- Author:
- Alexander Kandzior
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CmsDigesterResourceTypeCreationFactory
public CmsDigesterResourceTypeCreationFactory()
- Default constructor for the resource type configuration factory.
createObject
public Object createObject(Attributes attributes)
throws Exception
- Specified by:
createObject in interface ObjectCreationFactory- Specified by:
createObject in class AbstractObjectCreationFactory
- Throws:
Exception- See Also:
ObjectCreationFactory.createObject(org.xml.sax.Attributes)