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(org.jboss.marshalling.MarshallerFactory factory,
org.jboss.marshalling.MarshallingConfiguration config)
Create a new instance of
DefaultMarshallerProvider |
Modifier and Type | Method and Description |
---|---|
org.jboss.marshalling.Unmarshaller |
getUnmarshaller(ChannelHandlerContext ctx)
Get the
Unmarshaller for the given ChannelHandlerContext |
public DefaultUnmarshallerProvider(org.jboss.marshalling.MarshallerFactory factory, org.jboss.marshalling.MarshallingConfiguration config)
DefaultMarshallerProvider
factory
- the MarshallerFactory
to use to create Unmarshaller
config
- the MarshallingConfiguration
public org.jboss.marshalling.Unmarshaller getUnmarshaller(ChannelHandlerContext ctx) throws Exception
UnmarshallerProvider
Unmarshaller
for the given ChannelHandlerContext
getUnmarshaller
in interface UnmarshallerProvider
Exception
Copyright © 2008-2016 The Netty Project. All Rights Reserved.