Class 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 CmsResourceTypeUnknown, so that the import of the resources can proceed.

    Since:
    6.0.2
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      I_CmsResourceType createObject​(org.xml.sax.Attributes attributes)  
      • Methods inherited from class org.apache.commons.digester3.AbstractObjectCreationFactory

        getDigester, setDigester
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • createObject

        public I_CmsResourceType createObject​(org.xml.sax.Attributes attributes)
                                       throws java.lang.Exception
        Specified by:
        createObject in interface org.apache.commons.digester3.ObjectCreationFactory<I_CmsResourceType>
        Specified by:
        createObject in class org.apache.commons.digester3.AbstractObjectCreationFactory<I_CmsResourceType>
        Throws:
        java.lang.Exception
        See Also:
        ObjectCreationFactory.createObject(org.xml.sax.Attributes)