org.apache.catalina.startup

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 Summary

LifecycleListenerRule(String listenerClass, String attributeName)
Construct a new instance of this Rule.

Method Summary

void
begin(String namespace, String name, Attributes attributes)
Handle the beginning of an XML element.

Constructor Details

LifecycleListenerRule

public LifecycleListenerRule(String listenerClass,
                             String attributeName)
Construct a new instance of this Rule.

Parameters:
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 Details

begin

public void begin(String namespace,
                  String name,
                  Attributes attributes)
            throws Exception
Handle the beginning of an XML element.

Parameters:
attributes - The attributes of this element


Copyright B) 2000-2003 Apache Software Foundation. All Rights Reserved.