Fields Summary |
---|
public static final String | INIT_EVENTThe LifecycleEvent type for the "component init" event. |
public static final String | START_EVENTThe LifecycleEvent type for the "component start" event. |
public static final String | BEFORE_START_EVENTThe LifecycleEvent type for the "component before start" event. |
public static final String | AFTER_START_EVENTThe LifecycleEvent type for the "component after start" event. |
public static final String | STOP_EVENTThe LifecycleEvent type for the "component stop" event. |
public static final String | BEFORE_STOP_EVENTThe LifecycleEvent type for the "component before stop" event. |
public static final String | AFTER_STOP_EVENTThe LifecycleEvent type for the "component after stop" event. |
public static final String | DESTROY_EVENTThe LifecycleEvent type for the "component destroy" event. |
public static final String | PERIODIC_EVENTThe LifecycleEvent type for the "periodic" event. |
Methods Summary |
---|
public void | addLifecycleListener(LifecycleListener listener)Add a LifecycleEvent listener to this component.
|
public LifecycleListener[] | findLifecycleListeners()Get the lifecycle listeners associated with this lifecycle. If this
Lifecycle has no listeners registered, a zero-length array is returned.
|
public void | removeLifecycleListener(LifecycleListener listener)Remove a LifecycleEvent listener from this component.
|
public void | start()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.
|
public void | stop()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.
|