restructuring
[lwes-java.git] / src / main / java / org / lwes / listener / EventHandler.java
blob0bceaf3c82aa8808b80553000d4c571807620051
1 package org.lwes.listener;
3 import org.lwes.Event;
5 /**
6 * This interface is implemented by any object that wishes to
7 * receive incoming Events. Once an EventListener registers
8 * with an EventDispatcher, it will receive access to any new
9 * Events that are sent through that EventDispatcher.
11 * @author Anthony Molinaro
13 public interface EventHandler {
15 /**
16 * This is the method that is called when an event is caught.
17 * @param event
19 public void handleEvent(Event event);
21 /**
22 * Shutdown hook
24 public void destroy();