| org.apache.catalina.Lifecycle
All known Subclasses: org.apache.catalina.loader.WebappLoader, org.apache.catalina.core.StandardService, org.apache.catalina.valves.JDBCAccessLogValve, org.apache.catalina.authenticator.AuthenticatorBase, org.apache.catalina.realm.RealmBase, org.apache.catalina.session.PersistentManagerBase, org.apache.catalina.core.StandardPipeline, org.apache.catalina.session.StoreBase, org.apache.catalina.loader.WebappClassLoader, org.apache.catalina.authenticator.SingleSignOn, org.apache.catalina.core.StandardServer, org.apache.catalina.logger.LoggerBase, org.apache.catalina.valves.ExtendedAccessLogValve, org.apache.catalina.core.ContainerBase, org.apache.catalina.startup.Embedded, org.apache.catalina.session.StandardManager, org.apache.catalina.valves.AccessLogValve, org.apache.coyote.tomcat5.CoyoteConnector,
Lifecycle | public interface Lifecycle (Code) | | Common interface for component life cycle methods. Catalina components
may, but are not required to, implement this interface (as well as the
appropriate interface(s) for the functionality they support) in order to
provide a consistent mechanism to start and stop the component.
author: Craig R. McClanahan version: $Revision: 1.2 $ $Date: 2004/02/27 14:58:38 $ |
AFTER_START_EVENT | final public static String AFTER_START_EVENT(Code) | | The LifecycleEvent type for the "component after start" event.
|
AFTER_STOP_EVENT | final public static String AFTER_STOP_EVENT(Code) | | The LifecycleEvent type for the "component after stop" event.
|
BEFORE_START_EVENT | final public static String BEFORE_START_EVENT(Code) | | The LifecycleEvent type for the "component before start" event.
|
BEFORE_STOP_EVENT | final public static String BEFORE_STOP_EVENT(Code) | | The LifecycleEvent type for the "component before stop" event.
|
START_EVENT | final public static String START_EVENT(Code) | | The LifecycleEvent type for the "component start" event.
|
STOP_EVENT | final public static String STOP_EVENT(Code) | | The LifecycleEvent type for the "component stop" event.
|
addLifecycleListener | public void addLifecycleListener(LifecycleListener listener)(Code) | | Add a LifecycleEvent listener to this component.
Parameters: listener - The listener to add |
findLifecycleListeners | public LifecycleListener[] findLifecycleListeners()(Code) | | Get the lifecycle listeners associated with this lifecycle. If this
Lifecycle has no listeners registered, a zero-length array is returned.
|
removeLifecycleListener | public void removeLifecycleListener(LifecycleListener listener)(Code) | | Remove a LifecycleEvent listener from this component.
Parameters: listener - The listener to remove |
start | public void start() throws LifecycleException(Code) | | Prepare for the beginning of active use of the public methods of this
component. This method should be called before any of the public
methods of this component are utilized. It should also send a
LifecycleEvent of type START_EVENT to any registered listeners.
exception: LifecycleException - if this component detects a fatal errorthat prevents this component from being used |
stop | public void stop() throws LifecycleException(Code) | | Gracefully terminate the active use of the public methods of this
component. This method should be the last one called on a given
instance of this component. It should also send a LifecycleEvent
of type STOP_EVENT to any registered listeners.
exception: LifecycleException - if this component detects a fatal errorthat needs to be reported |
|
|