Class LifecycleListenerRule


  • public class LifecycleListenerRule
    extends Rule

    Rule that creates a new LifecycleListener instance, and associates it with the top object on the stack (which must implement LifecycleListener).

    • Constructor Detail

      • LifecycleListenerRule

        public LifecycleListenerRule​(Digester digester,
                                     String listenerClass,
                                     String attributeName)
        Construct a new instance of this Rule.
        Parameters:
        digester - Digester we are associated with
        listenerClass - Default name of the LifecycleListener implementation class to be created
        attributeName - Name of the attribute that optionally includes an override name of the LifecycleListener class
    • Method Detail

      • begin

        public void begin​(Attributes attributes)
                   throws Exception
        Handle the beginning of an XML element.
        Overrides:
        begin in class Rule
        Parameters:
        attributes - The attributes of this element
        Throws:
        Exception - if a processing error occurs