Version: 1.1.1

org.biomoby.shared.event
Class SimpleListener

java.lang.Object
  extended by org.biomoby.shared.event.SimpleListener
All Implemented Interfaces:
EventListener, NotificationListener

public class SimpleListener
extends Object
implements NotificationListener

A simple implementation of a NotificationListener that prints all intercepted messages on standard output, or to the given output stream.

Version:
$Id: SimpleListener.java,v 1.1 2005/10/12 11:17:59 senger Exp $
Author:
Martin Senger

Constructor Summary
SimpleListener()
          Default constructor.
SimpleListener(PrintStream out)
          A constructor directing messages to the given output stream.
 
Method Summary
 void notified(NotificationEvent event)
          Invoked when a notification arrives.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleListener

public SimpleListener()
Default constructor. Messages will be printed to the standard output.


SimpleListener

public SimpleListener(PrintStream out)
A constructor directing messages to the given output stream.

Method Detail

notified

public void notified(NotificationEvent event)
Description copied from interface: NotificationListener
Invoked when a notification arrives.

Specified by:
notified in interface NotificationListener

Version: 1.1.1

Submit a bug or feature
Generated: Sat May 29 04:26:35 EDT 2010