org.apache.catalina
public interface Lifecycle
Version: $Revision: 467222 $ $Date: 2006-10-24 05:17:11 +0200 (Tue, 24 Oct 2006) $
Field Summary | |
---|---|
static String | AFTER_START_EVENT
The LifecycleEvent type for the "component after start" event. |
static String | AFTER_STOP_EVENT
The LifecycleEvent type for the "component after stop" event. |
static String | BEFORE_START_EVENT
The LifecycleEvent type for the "component before start" event. |
static String | BEFORE_STOP_EVENT
The LifecycleEvent type for the "component before stop" event. |
static String | DESTROY_EVENT
The LifecycleEvent type for the "component destroy" event. |
static String | INIT_EVENT
The LifecycleEvent type for the "component init" event. |
static String | PERIODIC_EVENT
The LifecycleEvent type for the "periodic" event. |
static String | START_EVENT
The LifecycleEvent type for the "component start" event. |
static String | STOP_EVENT
The LifecycleEvent type for the "component stop" event. |
Method Summary | |
---|---|
void | addLifecycleListener(LifecycleListener listener)
Add a LifecycleEvent listener to this component.
|
LifecycleListener[] | findLifecycleListeners()
Get the lifecycle listeners associated with this lifecycle. |
void | removeLifecycleListener(LifecycleListener listener)
Remove a LifecycleEvent listener from this component.
|
void | start()
Prepare for the beginning of active use of the public methods of this
component. |
void | stop()
Gracefully terminate the active use of the public methods of this
component. |
Parameters: listener The listener to add
Parameters: listener The listener to remove
Throws: LifecycleException if this component detects a fatal error that prevents this component from being used
Throws: LifecycleException if this component detects a fatal error that needs to be reported