public class DefaultUnmarshallerProvider extends java.lang.Object implements UnmarshallerProvider
UnmarshallerProvider
,这将只需要创建一个新Unmarshaller
在每次调用getUnmarshaller(ChannelHandlerContext)
Constructor and Description |
---|
DefaultUnmarshallerProvider(org.jboss.marshalling.MarshallerFactory factory, org.jboss.marshalling.MarshallingConfiguration config)
创建一个新的 DefaultMarshallerProvider 实例
|
Modifier and Type | Method and Description |
---|---|
org.jboss.marshalling.Unmarshaller |
getUnmarshaller(ChannelHandlerContext ctx)
获取 Unmarshaller 对于给定ChannelHandlerContext
|
public DefaultUnmarshallerProvider(org.jboss.marshalling.MarshallerFactory factory, org.jboss.marshalling.MarshallingConfiguration config)
DefaultMarshallerProvider
实例
factory
-
MarshallerFactory
用于创建
Unmarshaller
config
-
MarshallingConfiguration
public org.jboss.marshalling.Unmarshaller getUnmarshaller(ChannelHandlerContext ctx) throws java.lang.Exception
UnmarshallerProvider
复制的描述
Unmarshaller
对于给定ChannelHandlerContext
getUnmarshaller
在界面
UnmarshallerProvider
java.lang.Exception
Copyright © 2008–2018 The Netty Project. All rights reserved.