org.datamanager.tools
Class EventLoggerSimpleton

java.lang.Object
  |
  +--org.datamanager.kernel.Simpleton
        |
        +--org.datamanager.tools.EventLoggerSimpleton
All Implemented Interfaces:
EventHandler

public class EventLoggerSimpleton
extends Simpleton
implements EventHandler

Used to log all Events that pass through the KnownSpace kernel. Handy for developers as a state-examination or tracing tool.

Author:
Matt Liggett

Nested Class Summary
 
Nested classes inherited from class org.datamanager.kernel.Simpleton
Simpleton.Information, Simpleton.Priority
 
Constructor Summary
EventLoggerSimpleton()
           
 
Method Summary
 void handle(DataManagerEvent dataManagerEvent)
          Handle a DataManagerEvent that has been fired.
 void process()
          Starts this Simpleton and subscribes it to all events.
 
Methods inherited from class org.datamanager.kernel.Simpleton
clone, getInformation, getPriority, setInformation, setPriority, start
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EventLoggerSimpleton

public EventLoggerSimpleton()
Method Detail

process

public void process()
Starts this Simpleton and subscribes it to all events.

Specified by:
process in class Simpleton

handle

public void handle(DataManagerEvent dataManagerEvent)
Description copied from interface: EventHandler
Handle a DataManagerEvent that has been fired.

Specified by:
handle in interface EventHandler
Parameters:
dataManagerEvent - The event to handle.


See the Helium Website