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
.构造器和说明 |
---|
ContextBoundUnmarshallerProvider(MarshallerFactory factory,
MarshallingConfiguration config) |
限定符和类型 | 方法和说明 |
---|---|
Unmarshaller |
getUnmarshaller(ChannelHandlerContext ctx)
Get the
Unmarshaller for the given ChannelHandlerContext |
public ContextBoundUnmarshallerProvider(MarshallerFactory factory, MarshallingConfiguration config)
public Unmarshaller getUnmarshaller(ChannelHandlerContext ctx) throws java.lang.Exception
UnmarshallerProvider
Unmarshaller
for the given ChannelHandlerContext
getUnmarshaller
在接口中 UnmarshallerProvider
getUnmarshaller
在类中 DefaultUnmarshallerProvider
java.lang.Exception