org.apache.qpid.server.cluster.handler
Class WrappingMethodHandlerFactory

java.lang.Object
  extended by org.apache.qpid.server.cluster.handler.WrappingMethodHandlerFactory
All Implemented Interfaces:
MethodHandlerFactory
Direct Known Subclasses:
RecordingMethodHandlerFactory

public abstract class WrappingMethodHandlerFactory
extends java.lang.Object
implements MethodHandlerFactory


Nested Class Summary
protected static class WrappingMethodHandlerFactory.FrameDescriptor<A extends org.apache.qpid.framing.AMQMethodBody,B extends java.lang.Class<A>>
           
 
Constructor Summary
protected WrappingMethodHandlerFactory(MethodHandlerFactory delegate, org.apache.qpid.server.state.StateAwareMethodListener pre, org.apache.qpid.server.state.StateAwareMethodListener post)
           
 
Method Summary
protected abstract  java.lang.Iterable<WrappingMethodHandlerFactory.FrameDescriptor> getWrappableFrameTypes(org.apache.qpid.server.state.AMQState state)
           
protected abstract  boolean isWrappableState(org.apache.qpid.server.state.AMQState state)
           
 MethodHandlerRegistry register(org.apache.qpid.server.state.AMQState state, MethodHandlerRegistry registry)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WrappingMethodHandlerFactory

protected WrappingMethodHandlerFactory(MethodHandlerFactory delegate,
                                       org.apache.qpid.server.state.StateAwareMethodListener pre,
                                       org.apache.qpid.server.state.StateAwareMethodListener post)
Method Detail

register

public MethodHandlerRegistry register(org.apache.qpid.server.state.AMQState state,
                                      MethodHandlerRegistry registry)
Specified by:
register in interface MethodHandlerFactory

isWrappableState

protected abstract boolean isWrappableState(org.apache.qpid.server.state.AMQState state)

getWrappableFrameTypes

protected abstract java.lang.Iterable<WrappingMethodHandlerFactory.FrameDescriptor> getWrappableFrameTypes(org.apache.qpid.server.state.AMQState state)