org.msgpack.rpc.dispatcher
Class MethodDispatcher

java.lang.Object
  extended by org.msgpack.rpc.dispatcher.MethodDispatcher
All Implemented Interfaces:
Dispatcher

public class MethodDispatcher
extends java.lang.Object
implements Dispatcher


Field Summary
protected  java.util.Map<java.lang.String,Invoker> methodMap
           
protected  java.lang.Object target
           
 
Constructor Summary
MethodDispatcher(java.lang.Object target)
           
MethodDispatcher(java.lang.Object target, java.lang.Class<?> iface)
           
MethodDispatcher(java.lang.Object target, java.lang.reflect.Method[] methods)
           
 
Method Summary
 void dispatch(Request request)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

methodMap

protected java.util.Map<java.lang.String,Invoker> methodMap

target

protected java.lang.Object target
Constructor Detail

MethodDispatcher

public MethodDispatcher(java.lang.Object target)

MethodDispatcher

public MethodDispatcher(java.lang.Object target,
                        java.lang.Class<?> iface)

MethodDispatcher

public MethodDispatcher(java.lang.Object target,
                        java.lang.reflect.Method[] methods)
Method Detail

dispatch

public void dispatch(Request request)
              throws java.lang.Exception
Specified by:
dispatch in interface Dispatcher
Throws:
java.lang.Exception


Copyright © 2010. All Rights Reserved.