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.