public class ContextBoundUnmarshallerProvider extends DefaultUnmarshallerProvider
UnmarshallerProvider which store a reference to the Unmarshaller in the
ChannelHandlerContext via the ChannelHandlerContext.attr(AttributeKey)
method. So the same Unmarshaller will be used during the life-time of a Channel
for the ChannelHandler's ChannelHandlerContext.| Modifier and Type | Field and Description |
|---|---|
private static AttributeKey<org.jboss.marshalling.Unmarshaller> |
UNMARSHALLER |
| Constructor and Description |
|---|
ContextBoundUnmarshallerProvider(org.jboss.marshalling.MarshallerFactory factory,
org.jboss.marshalling.MarshallingConfiguration config) |
| Modifier and Type | Method and Description |
|---|---|
org.jboss.marshalling.Unmarshaller |
getUnmarshaller(ChannelHandlerContext ctx)
Get the
Unmarshaller for the given ChannelHandlerContext |
private static final AttributeKey<org.jboss.marshalling.Unmarshaller> UNMARSHALLER
public ContextBoundUnmarshallerProvider(org.jboss.marshalling.MarshallerFactory factory,
org.jboss.marshalling.MarshallingConfiguration config)
public org.jboss.marshalling.Unmarshaller getUnmarshaller(ChannelHandlerContext ctx) throws java.lang.Exception
UnmarshallerProviderUnmarshaller for the given ChannelHandlerContextgetUnmarshaller in interface UnmarshallerProvidergetUnmarshaller in class DefaultUnmarshallerProviderjava.lang.Exception