public class DefaultMarshallerProvider extends Object implements MarshallerProvider
MarshallerProvider
which just create a new Marshaller
on ever getMarshaller(ChannelHandlerContext)
call.Constructor and Description |
---|
DefaultMarshallerProvider(MarshallerFactory factory,
MarshallingConfiguration config)
Create a new instance
|
Modifier and Type | Method and Description |
---|---|
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 Exception
MarshallerProvider
Marshaller
for the given ChannelHandlerContext
getMarshaller
in interface MarshallerProvider
Exception
Copyright © 2008–2021 The Netty Project. All rights reserved.