|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.gcube.smartgears.handlers.AbstractHandler
org.gcube.smartgears.handlers.application.ApplicationLifecycleHandler
public abstract class ApplicationLifecycleHandler
A 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 Summary | |
|---|---|
ApplicationLifecycleHandler()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class org.gcube.smartgears.handlers.AbstractHandler |
|---|
toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ApplicationLifecycleHandler()
| Method Detail |
|---|
public 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)
Handler
onEvent in interface Handler<ApplicationEvent<ApplicationLifecycleHandler>>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||