public class DefaultMarshallerProvider extends Object implements MarshallerProvider
MarshallerProvider
which just create a new Marshaller
on ever getMarshaller(ChannelHandlerContext)
call.Constructor and Description |
---|
DefaultMarshallerProvider(org.jboss.marshalling.MarshallerFactory factory,
org.jboss.marshalling.MarshallingConfiguration config)
Create a new instance
|
Modifier and Type | Method and Description |
---|---|
org.jboss.marshalling.Marshaller |
getMarshaller(ChannelHandlerContext ctx)
Get a
Marshaller for the given ChannelHandlerContext |
public DefaultMarshallerProvider(org.jboss.marshalling.MarshallerFactory factory, org.jboss.marshalling.MarshallingConfiguration config)
factory
- the MarshallerFactory
to use to create Marshaller
config
- the MarshallingConfiguration
public org.jboss.marshalling.Marshaller getMarshaller(ChannelHandlerContext ctx) throws Exception
MarshallerProvider
Marshaller
for the given ChannelHandlerContext
getMarshaller
in interface MarshallerProvider
Exception
Copyright © 2008-2015 The Netty Project. All Rights Reserved.