org.gcube.smartgears.handlers
Class Event<C>

java.lang.Object
  extended by org.gcube.smartgears.handlers.Event<C>
Type Parameters:
C - the context type
Direct Known Subclasses:
ApplicationEvent, ContainerLifecycleEvent

public abstract class Event<C>
extends Object

An event related to a given context.

Author:
Fabio Simeoni

Constructor Summary
Event(C context)
          Creates an instance with the context of the container.
 
Method Summary
 C context()
          Returns the context of the container.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Event

public Event(C context)
Creates an instance with the context of the container.

Parameters:
context - the context
Method Detail

context

public C context()
Returns the context of the container.

Returns:
the context

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2013. All Rights Reserved.