net.dpml.test.app
Class DefaultServer

java.lang.Object
  extended by net.dpml.test.app.DefaultServer
All Implemented Interfaces:
Server

public class DefaultServer
extends Object
implements Server

A server.

Version:
1.2.0
Author:
Digital Product Meta Library

Nested Class Summary
static interface DefaultServer.Context
          The construction criteria.
 
Constructor Summary
DefaultServer(DefaultServer.Context context)
          Creation of a new singleton component instance.
 
Method Summary
 void addListener(Listener listener)
          Add a listener.
 void triggerNotify(String message)
          Rather than fully implementing this component we are cheating by providing this hook so that the testcase can fire the notification.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultServer

public DefaultServer(DefaultServer.Context context)
Creation of a new singleton component instance.

Parameters:
context - a context implementation fullfilling the context criteria
Method Detail

addListener

public void addListener(Listener listener)
Add a listener.

Specified by:
addListener in interface Server
Parameters:
listener - the listener

triggerNotify

public void triggerNotify(String message)
Rather than fully implementing this component we are cheating by providing this hook so that the testcase can fire the notification.

Parameters:
message - the message supplied by the testcase to be forwarded by the implementation to registereed listeners