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
UnmarshallerProvider
which store a reference to theUnmarshaller
in theChannelHandlerContext
via theChannelHandlerContext.attr(AttributeKey)
method. So the sameUnmarshaller
will be used during the life-time of aChannel
for 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.Unmarshaller
getUnmarshaller(ChannelHandlerContext ctx)
Get theUnmarshaller
for the givenChannelHandlerContext
-
-
-
Method Detail
-
getUnmarshaller
public org.jboss.marshalling.Unmarshaller getUnmarshaller(ChannelHandlerContext ctx) throws java.lang.Exception
Description copied from interface:UnmarshallerProvider
Get theUnmarshaller
for the givenChannelHandlerContext
- Specified by:
getUnmarshaller
in interfaceUnmarshallerProvider
- Overrides:
getUnmarshaller
in classDefaultUnmarshallerProvider
- Throws:
java.lang.Exception
-
-