Class DefaultMarshallerProvider
java.lang.Object
org.jboss.netty.handler.codec.marshalling.DefaultMarshallerProvider
- All Implemented Interfaces:
MarshallerProvider
Default implementation of
MarshallerProvider
which just create a new Marshaller
on ever getMarshaller(ChannelHandlerContext)
call.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDefaultMarshallerProvider
(org.jboss.marshalling.MarshallerFactory factory, org.jboss.marshalling.MarshallingConfiguration config) Create a new instance -
Method Summary
Modifier and TypeMethodDescriptionorg.jboss.marshalling.Marshaller
Get aMarshaller
for the givenChannelHandlerContext
-
Field Details
-
factory
private final org.jboss.marshalling.MarshallerFactory factory -
config
private final org.jboss.marshalling.MarshallingConfiguration config
-
-
Constructor Details
-
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 Details
-
getMarshaller
Description copied from interface:MarshallerProvider
Get aMarshaller
for the givenChannelHandlerContext
- Specified by:
getMarshaller
in interfaceMarshallerProvider
- Throws:
Exception
-