|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.gcube.common.ghn.service.handlers.AbstractHandler<LifecycleHandler>
org.gcube.common.ghn.service.handlers.LifecycleHandler
public abstract class LifecycleHandler
A Handler of LifecycleEvents.
The handler participates in a Pipeline 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 Pipeline
Pipeline.forward(ApplicationEvent).
LifecycleEvent,
Pipeline| Constructor Summary | |
|---|---|
LifecycleHandler()
|
|
| Method Summary | |
|---|---|
void |
onEvent(ApplicationEvent<LifecycleHandler> e)
Processes a given event. |
void |
onStart(LifecycleEvent.Start e)
Invoked when the container starts a managed app. |
void |
onStop(LifecycleEvent.Stop e)
Invoked when the container stops a managed app. |
| Methods inherited from class org.gcube.common.ghn.service.handlers.AbstractHandler |
|---|
toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public LifecycleHandler()
| Method Detail |
|---|
public void onStart(LifecycleEvent.Start e)
pipeline - the pipeline in which this handler is registerede - the eventpublic void onStop(LifecycleEvent.Stop e)
pipeline - the pipeline in which this handler is registerede - the stop eventpublic void onEvent(ApplicationEvent<LifecycleHandler> e)
ApplicationHandler
e - the event
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||