com.croftsoft.core.util
Class ClassMapServer

java.lang.Object
  extended by com.croftsoft.core.util.ClassMapServer
All Implemented Interfaces:
Server

public final class ClassMapServer
extends Object
implements Server

Maps requests to a delegate Server based upon the request Class.

Since:
2003-06-05
Version:
2003-06-05
Author:
David Wallace Croft

Constructor Summary
ClassMapServer()
           
ClassMapServer(Map classToServerMap)
           
 
Method Summary
 Server put(Class c, Server server)
           
 Object serve(Object request)
          Processes a request.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClassMapServer

public ClassMapServer(Map classToServerMap)

ClassMapServer

public ClassMapServer()
Method Detail

put

public Server put(Class c,
                  Server server)

serve

public Object serve(Object request)
Description copied from interface: Server
Processes a request.

Specified by:
serve in interface Server
Returns:
Returns a response Object or null.

CroftSoft Javadoc

CroftSoft Core Javadoc (2008-09-28 20:58:02)