Top Description Fields Constructors Methods
io.netty.handler.codec.marshalling

public Class DefaultMarshallerProvider

extends Object
implements MarshallerProvider
Class Inheritance
All Implemented Interfaces
io.netty.handler.codec.marshalling.MarshallerProvider
Imports
io.netty.channel.ChannelHandlerContext, org.jboss.marshalling.Marshaller, .MarshallerFactory, .MarshallingConfiguration

Default implementation of MarshallerProvider which just create a new Marshaller on ever getMarshaller(ChannelHandlerContext) call.

Field Summary

Modifier and TypeField and Description
private final MarshallingConfiguration
private final MarshallerFactory

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public Marshaller
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

configback to summary
private final MarshallingConfiguration config
factoryback to summary
private final MarshallerFactory factory

Constructor Detail

DefaultMarshallerProviderback to summary
public DefaultMarshallerProvider(MarshallerFactory factory, MarshallingConfiguration config)

Create a new instance

Parameters
factory:MarshallerFactory

the MarshallerFactory to use to create Marshaller

config:MarshallingConfiguration

the MarshallingConfiguration

Method Detail

getMarshallerback to summary
public Marshaller getMarshaller(ChannelHandlerContext ctx) throws Exception

Implements io.netty.handler.codec.marshalling.MarshallerProvider.getMarshaller.

Doc from io.netty.handler.codec.marshalling.MarshallerProvider.getMarshaller.

Get a Marshaller for the given ChannelHandlerContext

Annotations
@Override