org.apache.qpid.server.cluster
Class MethodHandlerRegistry

java.lang.Object
  extended by org.apache.qpid.server.cluster.MethodHandlerRegistry

public class MethodHandlerRegistry
extends java.lang.Object


Constructor Summary
MethodHandlerRegistry()
           
 
Method Summary
<A extends org.apache.qpid.framing.AMQMethodBody,B extends java.lang.Class<A>>
MethodHandlerRegistry
addHandler(B type, org.apache.qpid.server.state.StateAwareMethodListener<A> handler)
           
<B extends org.apache.qpid.framing.AMQMethodBody>
org.apache.qpid.server.state.StateAwareMethodListener<B>
getHandler(B frame)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MethodHandlerRegistry

public MethodHandlerRegistry()
Method Detail

addHandler

public <A extends org.apache.qpid.framing.AMQMethodBody,B extends java.lang.Class<A>> MethodHandlerRegistry addHandler(B type,
                                                                                                                       org.apache.qpid.server.state.StateAwareMethodListener<A> handler)

getHandler

public <B extends org.apache.qpid.framing.AMQMethodBody> org.apache.qpid.server.state.StateAwareMethodListener<B> getHandler(B frame)