Class AbstractObjectCreationFactory<T>

    • Field Detail

      • digester

        private Digester digester
        The associated Digester instance that was set up by FactoryCreateRule upon initialization.
    • Constructor Detail

      • AbstractObjectCreationFactory

        public AbstractObjectCreationFactory()
    • Method Detail

      • createObject

        public abstract T createObject​(org.xml.sax.Attributes attributes)
                                throws java.lang.Exception
        Factory method called by FactoryCreateRule to supply an object based on the element's attributes.
        Specified by:
        createObject in interface ObjectCreationFactory<T>
        Parameters:
        attributes - the element's attributes
        Returns:
        creates a new T instance
        Throws:
        java.lang.Exception - any exception thrown will be propagated upwards
      • setDigester

        public void setDigester​(Digester digester)
        Set the Digester to allow the implementation to do logging, classloading based on the digester's classloader, etc.
        Specified by:
        setDigester in interface ObjectCreationFactory<T>
        Parameters:
        digester - parent Digester object