package org.gcube.smartgears.handlers; /** * An event related to a given context. * * @author Fabio Simeoni * * @param the context type */ public abstract class Event { private final C context; /** * Creates an instance with the context of the container. * @param context the context */ public Event(C context) { this.context=context; } /** * Returns the context of the container. * @return the context */ public C context() { return context; } @Override public String toString() { return getClass().getSimpleName(); } }