public class DefaultMarshallerProvider extends java.lang.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 java.lang.Exception
MarshallerProvider
Marshaller
for the given ChannelHandlerContext
getMarshaller
in interface MarshallerProvider
java.lang.Exception
Copyright © 2008–2018 The Netty Project. All rights reserved.