|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.dpml.test.app.DefaultServer
public class DefaultServer
A server.
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 |
---|
public DefaultServer(DefaultServer.Context context)
context
- a context implementation fullfilling the context criteriaMethod Detail |
---|
public void addListener(Listener listener)
addListener
in interface Server
listener
- the listenerpublic void triggerNotify(String message)
message
- the message supplied by the testcase to be forwarded
by the implementation to registereed listeners
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |