|
Apache Tomcat 7.0.39 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.catalina.util.LifecycleSupport
public final class LifecycleSupport
Support class to assist in firing LifecycleEvent notifications to registered LifecycleListeners.
Constructor Summary | |
---|---|
LifecycleSupport(Lifecycle lifecycle)
Construct a new LifecycleSupport object associated with the specified Lifecycle component. |
Method Summary | |
---|---|
void |
addLifecycleListener(LifecycleListener listener)
Add a lifecycle event listener to this component. |
LifecycleListener[] |
findLifecycleListeners()
Get the lifecycle listeners associated with this lifecycle. |
void |
fireLifecycleEvent(String type,
Object data)
Notify all lifecycle event listeners that a particular event has occurred for this Container. |
void |
removeLifecycleListener(LifecycleListener listener)
Remove a lifecycle event listener from this component. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LifecycleSupport(Lifecycle lifecycle)
lifecycle
- The Lifecycle component that will be the source
of events that we fireMethod Detail |
---|
public void addLifecycleListener(LifecycleListener listener)
listener
- The listener to addpublic LifecycleListener[] findLifecycleListeners()
public void fireLifecycleEvent(String type, Object data)
type
- Event typedata
- Event datapublic void removeLifecycleListener(LifecycleListener listener)
listener
- The listener to remove
|
Apache Tomcat 7.0.39 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |