Class DefaultMarshallerProvider
- java.lang.Object
-
- io.netty.handler.codec.marshalling.DefaultMarshallerProvider
-
- All Implemented Interfaces:
MarshallerProvider
public class DefaultMarshallerProvider extends java.lang.Object implements MarshallerProvider
Default implementation ofMarshallerProvider
which just create a newMarshaller
on evergetMarshaller(ChannelHandlerContext)
call.
-
-
Constructor Summary
Constructors Constructor Description DefaultMarshallerProvider(org.jboss.marshalling.MarshallerFactory factory, org.jboss.marshalling.MarshallingConfiguration config)
Create a new instance
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.jboss.marshalling.Marshaller
getMarshaller(ChannelHandlerContext ctx)
Get aMarshaller
for the givenChannelHandlerContext
-
-
-
Constructor Detail
-
DefaultMarshallerProvider
public DefaultMarshallerProvider(org.jboss.marshalling.MarshallerFactory factory, org.jboss.marshalling.MarshallingConfiguration config)
Create a new instance- Parameters:
factory
- theMarshallerFactory
to use to createMarshaller
config
- theMarshallingConfiguration
-
-
Method Detail
-
getMarshaller
public org.jboss.marshalling.Marshaller getMarshaller(ChannelHandlerContext ctx) throws java.lang.Exception
Description copied from interface:MarshallerProvider
Get aMarshaller
for the givenChannelHandlerContext
- Specified by:
getMarshaller
in interfaceMarshallerProvider
- Throws:
java.lang.Exception
-
-