public abstract class ApplicationLifecycleHandler extends AbstractHandler implements ApplicationHandler<ApplicationLifecycleHandler>
Handler of ApplicationLifecycleEvents.
The handler participates in a ApplicationPipeline of other handlers registered for notification of the same events.
After processing the event, it may or may not propagate the event to the handlers further down in the ApplicationPipeline
ApplicationPipeline#forward(ApplicationEvent).
ApplicationLifecycleEvent,
ApplicationPipeline| Constructor and Description |
|---|
ApplicationLifecycleHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
onEvent(ApplicationEvent<ApplicationLifecycleHandler> e)
Processes a given event.
|
void |
onStart(ApplicationLifecycleEvent.Start e)
Invoked when the container starts a managed app.
|
void |
onStop(ApplicationLifecycleEvent.Stop e)
Invoked when the container stops a managed app.
|
toStringpublic void onStart(ApplicationLifecycleEvent.Start e)
pipeline - the pipeline in which this handler is registerede - the eventpublic void onStop(ApplicationLifecycleEvent.Stop e)
pipeline - the pipeline in which this handler is registerede - the stop eventpublic void onEvent(ApplicationEvent<ApplicationLifecycleHandler> e)
HandleronEvent in interface Handler<ApplicationEvent<ApplicationLifecycleHandler>>Copyright © 2015. All Rights Reserved.