public class DefaultMarshallerProvider extends java.lang.Object implements MarshallerProvider
MarshallerProvider
which just create a new Marshaller
on ever getMarshaller(ChannelHandlerContext)
call.构造器和说明 |
---|
DefaultMarshallerProvider(MarshallerFactory factory,
MarshallingConfiguration config)
Create a new instance
|
限定符和类型 | 方法和说明 |
---|---|
Marshaller |
getMarshaller(ChannelHandlerContext ctx)
Get a
Marshaller for the given ChannelHandlerContext |
public DefaultMarshallerProvider(MarshallerFactory factory, MarshallingConfiguration config)
factory
- the MarshallerFactory
to use to create Marshaller
config
- the MarshallingConfiguration
public Marshaller getMarshaller(ChannelHandlerContext ctx) throws java.lang.Exception
MarshallerProvider
Marshaller
for the given ChannelHandlerContext
getMarshaller
在接口中 MarshallerProvider
java.lang.Exception