net.dpml.test.app
Class DefaultListener

java.lang.Object
  extended by net.dpml.test.app.DefaultListener
All Implemented Interfaces:
Listener

public class DefaultListener
extends Object
implements Listener

A server.

Version:
1.2.0
Author:
Digital Product Meta Library

Nested Class Summary
static interface DefaultListener.Context
          The construction criteria.
 
Constructor Summary
DefaultListener(Logger logger, DefaultListener.Context context)
          Creation of a new singleton component instance.
 
Method Summary
 int getCount()
          Return the number of time the notify method has been invoked.
 void notify(String message)
          Handle notification from the server.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultListener

public DefaultListener(Logger logger,
                       DefaultListener.Context context)
Creation of a new singleton component instance.

Parameters:
logger - an assigned logging channel
context - a context implementation fullfilling the context criteria
Method Detail

notify

public void notify(String message)
Handle notification from the server.

Specified by:
notify in interface Listener
Parameters:
message - the nofication

getCount

public int getCount()
Return the number of time the notify method has been invoked.

Returns:
the notification count