public class ContextBoundUnmarshallerProvider extends DefaultUnmarshallerProvider
UnmarshallerProvider
,其存储到一个参考Unmarshaller
在ChannelHandlerContext
经由ChannelHandlerContext.attr(AttributeKey)
方法。
所以同样Unmarshaller
会期间的生活时使用Channel
为ChannelHandler
的ChannelHandlerContext
。
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)
获取 Unmarshaller 对于给定ChannelHandlerContext
|
public ContextBoundUnmarshallerProvider(org.jboss.marshalling.MarshallerFactory factory, org.jboss.marshalling.MarshallingConfiguration config)
public org.jboss.marshalling.Unmarshaller getUnmarshaller(ChannelHandlerContext ctx) throws java.lang.Exception
UnmarshallerProvider
Unmarshaller
对于给定ChannelHandlerContext
getUnmarshaller
在界面
UnmarshallerProvider
getUnmarshaller
在课堂上
DefaultUnmarshallerProvider
java.lang.Exception
Copyright © 2008–2018 The Netty Project. All rights reserved.