org.gcube.common.ghn.service.events
Class LifetimeEvent

java.lang.Object
  extended by org.gcube.common.ghn.service.events.LifetimeEvent
All Implemented Interfaces:
ServiceEvent<LifetimeHandler>
Direct Known Subclasses:
StartServiceEvent, StopServiceEvent

public abstract class LifetimeEvent
extends Object
implements ServiceEvent<LifetimeHandler>

A ServiceEvent that relates to the lifetime of a managed app.

The event is passed to LifetimeHandlers registered in Pipelines.

Author:
Fabio Simeoni
See Also:
LifetimeHandler, Pipeline

Constructor Summary
LifetimeEvent(javax.servlet.ServletContext ctx)
          Creates an instance with the ServletContext of the managed app.
 
Method Summary
 javax.servlet.ServletContext servletContext()
          Returns the ServletContext of the managed app.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LifetimeEvent

public LifetimeEvent(javax.servlet.ServletContext ctx)
Creates an instance with the ServletContext of the managed app.

Parameters:
ctx - the servlet context
Method Detail

servletContext

public javax.servlet.ServletContext servletContext()
Returns the ServletContext of the managed app.

Returns:
the servlet context

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2013. All Rights Reserved.