Package org.apache.catalina.startup
Class ListenerCreateRule.OptionalListener
- java.lang.Object
- 
- org.apache.catalina.startup.ListenerCreateRule.OptionalListener
 
- 
- All Implemented Interfaces:
- LifecycleListener
 - Enclosing class:
- ListenerCreateRule
 
 public static class ListenerCreateRule.OptionalListener extends java.lang.Object implements LifecycleListener 
- 
- 
Field SummaryFields Modifier and Type Field Description protected java.lang.StringclassNameprotected java.util.HashMap<java.lang.String,java.lang.String>properties
 - 
Constructor SummaryConstructors Constructor Description OptionalListener(java.lang.String className)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetClassName()java.util.Set<java.lang.String>getProperties()Return a set of the property keys.java.lang.ObjectgetProperty(java.lang.String name)Return a property from the protocol handler.voidlifecycleEvent(LifecycleEvent event)Acknowledge the occurrence of the specified event.booleansetProperty(java.lang.String name, java.lang.String value)Set the given property.
 
- 
- 
- 
Method Detail- 
getClassNamepublic java.lang.String getClassName() - Returns:
- the className
 
 - 
lifecycleEventpublic void lifecycleEvent(LifecycleEvent event) Description copied from interface:LifecycleListenerAcknowledge the occurrence of the specified event.- Specified by:
- lifecycleEventin interface- LifecycleListener
- Parameters:
- event- LifecycleEvent that has occurred
 
 - 
getPropertiespublic java.util.Set<java.lang.String> getProperties() Return a set of the property keys.- Returns:
- the set
 
 - 
getPropertypublic java.lang.Object getProperty(java.lang.String name) Return a property from the protocol handler.- Parameters:
- name- the property name
- Returns:
- the property value
 
 - 
setPropertypublic boolean setProperty(java.lang.String name, java.lang.String value)Set the given property.- Parameters:
- name- the property name
- value- the property value
- Returns:
- true
 
 
- 
 
-