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:
ApplicationProfileManager
public abstract class ApplicationLifecycleHandler
extends AbstractHandler
implements ApplicationHandler<ApplicationLifecycleHandler>
A
Handler of ApplicationLifecycleEvents.
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.
- Author:
- Fabio Simeoni, Luca Frosini (ISTI-CNR)
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidProcesses a given event.voidInvoked when the container starts a managed app.voidInvoked when the container stops a managed app.Methods inherited from class org.gcube.smartgears.handlers.AbstractHandler
equals, toString
-
Constructor Details
-
ApplicationLifecycleHandler
public ApplicationLifecycleHandler()
-
-
Method Details
-
onStart
Invoked when the container starts a managed app.- Parameters:
e- the start event
-
onStop
Invoked when the container stops a managed app.- Parameters:
e- the stop evente- the stop event
-
onEvent
Description copied from interface:HandlerProcesses a given event.- Specified by:
onEventin interfaceHandler<ApplicationEvent<ApplicationLifecycleHandler>>- Parameters:
e- the event to process
-