public class DefaultMarshallerProvider extends java.lang.Object implements MarshallerProvider
MarshallerProvider
的默认实现,它只是在getMarshaller(ChannelHandlerContext)
呼叫中创建一个新的Marshaller
。
Constructor and Description |
---|
DefaultMarshallerProvider(org.jboss.marshalling.MarshallerFactory factory, org.jboss.marshalling.MarshallingConfiguration config)
创建一个新的实例
|
Modifier and Type | Method and Description |
---|---|
org.jboss.marshalling.Marshaller |
getMarshaller(ChannelHandlerContext ctx)
找一个 Marshaller 对于给定ChannelHandlerContext
|
public DefaultMarshallerProvider(org.jboss.marshalling.MarshallerFactory factory, org.jboss.marshalling.MarshallingConfiguration config)
factory
-
MarshallerFactory
用于创建
Marshaller
config
-
MarshallingConfiguration
public org.jboss.marshalling.Marshaller getMarshaller(ChannelHandlerContext ctx) throws java.lang.Exception
MarshallerProvider
复制的描述
Marshaller
的Marshaller
getMarshaller
,界面
MarshallerProvider
java.lang.Exception
Copyright © 2008–2018 The Netty Project. All rights reserved.