Class ContextBoundUnmarshallerProvider
- java.lang.Object
-
- io.netty.handler.codec.marshalling.DefaultUnmarshallerProvider
-
- io.netty.handler.codec.marshalling.ContextBoundUnmarshallerProvider
-
- All Implemented Interfaces:
UnmarshallerProvider
public class ContextBoundUnmarshallerProvider extends DefaultUnmarshallerProvider
UnmarshallerProviderwhich store a reference to theUnmarshallerin theChannelHandlerContextvia theChannelHandlerContext.attr(AttributeKey)method. So the sameUnmarshallerwill be used during the life-time of aChannelfor theChannelHandler'sChannelHandlerContext.
-
-
Constructor Summary
Constructors Constructor Description ContextBoundUnmarshallerProvider(org.jboss.marshalling.MarshallerFactory factory, org.jboss.marshalling.MarshallingConfiguration config)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.jboss.marshalling.UnmarshallergetUnmarshaller(ChannelHandlerContext ctx)Get theUnmarshallerfor the givenChannelHandlerContext
-
-
-
Method Detail
-
getUnmarshaller
public org.jboss.marshalling.Unmarshaller getUnmarshaller(ChannelHandlerContext ctx) throws java.lang.Exception
Description copied from interface:UnmarshallerProviderGet theUnmarshallerfor the givenChannelHandlerContext- Specified by:
getUnmarshallerin interfaceUnmarshallerProvider- Overrides:
getUnmarshallerin classDefaultUnmarshallerProvider- Throws:
java.lang.Exception
-
-