Sea 0.4.0

gov.lbl.dsd.sea
Class EventHandler

java.lang.Object
  extended bygov.lbl.dsd.sea.EventHandler
Direct Known Subclasses:
AgentEventHandler, SimpleHTTPEventHandler

public abstract class EventHandler
extends Object

The abstract base class of all asynchronous event handlers.

Version:
$Revision: 1.9 $, $Date: 2004/09/16 16:57:15 $

Method Summary
abstract  void handle(Object event)
          Main entry point; called when an event handler should handle the given event.
 void onStart()
          Called when the event handler's stage is started.
 void onStop()
          Called when the event handler's stage is stopped.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

handle

public abstract void handle(Object event)
Main entry point; called when an event handler should handle the given event.


onStart

public void onStart()
Called when the event handler's stage is started. This method should perform any initialization operations as required by the application. The default implementation does nothing.


onStop

public void onStop()
Called when the event handler's stage is stopped. The default implementation does nothing.


Sea 0.4.0