Class ContextBoundUnmarshallerProvider
java.lang.Object
org.jboss.netty.handler.codec.marshalling.DefaultUnmarshallerProvider
org.jboss.netty.handler.codec.marshalling.ContextBoundUnmarshallerProvider
- All Implemented Interfaces:
UnmarshallerProvider
UnmarshallerProvider
which store a reference to the Unmarshaller
in the
ChannelHandlerContext
via the ChannelHandlerContext.setAttachment(Object)
method. So the same Unmarshaller
will be used during the life-time of a Channel
for the ChannelHandler
's ChannelHandlerContext
.-
Constructor Summary
ConstructorsConstructorDescriptionContextBoundUnmarshallerProvider
(org.jboss.marshalling.MarshallerFactory factory, org.jboss.marshalling.MarshallingConfiguration config) -
Method Summary
Modifier and TypeMethodDescriptionorg.jboss.marshalling.Unmarshaller
Get theUnmarshaller
for the givenChannelHandlerContext
-
Constructor Details
-
ContextBoundUnmarshallerProvider
public ContextBoundUnmarshallerProvider(org.jboss.marshalling.MarshallerFactory factory, org.jboss.marshalling.MarshallingConfiguration config)
-
-
Method Details
-
getUnmarshaller
public org.jboss.marshalling.Unmarshaller getUnmarshaller(ChannelHandlerContext ctx) throws Exception Description copied from interface:UnmarshallerProvider
Get theUnmarshaller
for the givenChannelHandlerContext
- Specified by:
getUnmarshaller
in interfaceUnmarshallerProvider
- Overrides:
getUnmarshaller
in classDefaultUnmarshallerProvider
- Throws:
Exception
-