public class DefaultUnmarshallerProvider extends Object implements UnmarshallerProvider
UnmarshallerProvider
which will just create a new Unmarshaller
on every call to getUnmarshaller(ChannelHandlerContext)
Constructor and Description |
---|
DefaultUnmarshallerProvider(MarshallerFactory factory,
MarshallingConfiguration config)
Create a new instance of
DefaultMarshallerProvider |
Modifier and Type | Method and Description |
---|---|
Unmarshaller |
getUnmarshaller(ChannelHandlerContext ctx)
Get the
Unmarshaller for the given ChannelHandlerContext |
public DefaultUnmarshallerProvider(MarshallerFactory factory, MarshallingConfiguration config)
DefaultMarshallerProvider
factory
- the MarshallerFactory
to use to create Unmarshaller
config
- the MarshallingConfiguration
public Unmarshaller getUnmarshaller(ChannelHandlerContext ctx) throws Exception
UnmarshallerProvider
Unmarshaller
for the given ChannelHandlerContext
getUnmarshaller
in interface UnmarshallerProvider
Exception
Copyright © 2008–2021 The Netty Project. All rights reserved.