Package org.opencms.configuration
Class CmsDigesterResourceTypeCreationFactory
- java.lang.Object
-
- org.apache.commons.digester3.AbstractObjectCreationFactory<I_CmsResourceType>
-
- org.opencms.configuration.CmsDigesterResourceTypeCreationFactory
-
- All Implemented Interfaces:
org.apache.commons.digester3.ObjectCreationFactory<I_CmsResourceType>
public class CmsDigesterResourceTypeCreationFactory extends org.apache.commons.digester3.AbstractObjectCreationFactory<I_CmsResourceType>
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
, so that the import of the resources can proceed.CmsResourceTypeUnknown
- Since:
- 6.0.2
-
-
Constructor Summary
Constructors Constructor Description CmsDigesterResourceTypeCreationFactory()
Default constructor for the resource type configuration factory.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description I_CmsResourceType
createObject(org.xml.sax.Attributes attributes)
-
-
-
Constructor Detail
-
CmsDigesterResourceTypeCreationFactory
public CmsDigesterResourceTypeCreationFactory()
Default constructor for the resource type configuration factory.
-
-
Method Detail
-
createObject
public I_CmsResourceType createObject(org.xml.sax.Attributes attributes) throws java.lang.Exception
- Specified by:
createObject
in interfaceorg.apache.commons.digester3.ObjectCreationFactory<I_CmsResourceType>
- Specified by:
createObject
in classorg.apache.commons.digester3.AbstractObjectCreationFactory<I_CmsResourceType>
- Throws:
java.lang.Exception
- See Also:
ObjectCreationFactory.createObject(org.xml.sax.Attributes)
-
-