Package org.apache.catalina.startup
Class ListenerCreateRule.OptionalListener
java.lang.Object
org.apache.catalina.startup.ListenerCreateRule.OptionalListener
- All Implemented Interfaces:
LifecycleListener
- Enclosing class:
ListenerCreateRule
A listener that is optional and may not be available at runtime.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturn the class name of the listener.Return a set of the property keys.getProperty(String name) Return a property from the protocol handler.voidlifecycleEvent(LifecycleEvent event) Acknowledge the occurrence of the specified event.booleansetProperty(String name, String value) Set the given property.
-
Field Details
-
className
The class name of the listener. -
properties
The properties of the listener.
-
-
Constructor Details
-
OptionalListener
Constructor.- Parameters:
className- The class name of the listener
-
-
Method Details
-
getClassName
Return the class name of the listener.- Returns:
- the className
-
lifecycleEvent
Description copied from interface:LifecycleListenerAcknowledge the occurrence of the specified event.- Specified by:
lifecycleEventin interfaceLifecycleListener- Parameters:
event- LifecycleEvent that has occurred
-
getProperties
Return a set of the property keys.- Returns:
- the set
-
getProperty
Return a property from the protocol handler.- Parameters:
name- the property name- Returns:
- the property value
-
setProperty
Set the given property.- Parameters:
name- the property namevalue- the property value- Returns:
true
-