Class ApplicationLifecycleHandler
- java.lang.Object
-
- org.gcube.smartgears.handlers.AbstractHandler
-
- org.gcube.smartgears.handlers.application.ApplicationLifecycleHandler
-
- All Implemented Interfaces:
ApplicationHandler<ApplicationLifecycleHandler>,Handler<ApplicationEvent<ApplicationLifecycleHandler>>
- Direct Known Subclasses:
ProfileManager
public abstract class ApplicationLifecycleHandler extends AbstractHandler implements ApplicationHandler<ApplicationLifecycleHandler>
AHandlerofApplicationLifecycleEvents.The handler participates in a
ApplicationPipelineof 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 theApplicationPipelineApplicationPipeline#forward(ApplicationEvent).- Author:
- Fabio Simeoni
- See Also:
ApplicationLifecycleEvent,ApplicationPipeline
-
-
Constructor Summary
Constructors Constructor Description ApplicationLifecycleHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidonEvent(ApplicationEvent<ApplicationLifecycleHandler> e)Processes a given event.voidonStart(ApplicationLifecycleEvent.Start e)Invoked when the container starts a managed app.voidonStop(ApplicationLifecycleEvent.Stop e)Invoked when the container stops a managed app.-
Methods inherited from class org.gcube.smartgears.handlers.AbstractHandler
equals, toString
-
-
-
-
Method Detail
-
onStart
public void onStart(ApplicationLifecycleEvent.Start e)
Invoked when the container starts a managed app.- Parameters:
pipeline- the pipeline in which this handler is registerede- the event
-
onStop
public void onStop(ApplicationLifecycleEvent.Stop e)
Invoked when the container stops a managed app.- Parameters:
pipeline- the pipeline in which this handler is registerede- the stop event
-
onEvent
public void onEvent(ApplicationEvent<ApplicationLifecycleHandler> e)
Description copied from interface:HandlerProcesses a given event.- Specified by:
onEventin interfaceHandler<ApplicationEvent<ApplicationLifecycleHandler>>
-
-