public class DefaultMarshallerProvider extends java.lang.Object implements MarshallerProvider
MarshallerProvider which just create a new Marshaller
on ever getMarshaller(ChannelHandlerContext) call.| Modifier and Type | Field and Description |
|---|---|
private org.jboss.marshalling.MarshallingConfiguration |
config |
private org.jboss.marshalling.MarshallerFactory |
factory |
| 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 |
private final org.jboss.marshalling.MarshallerFactory factory
private final org.jboss.marshalling.MarshallingConfiguration config
public DefaultMarshallerProvider(org.jboss.marshalling.MarshallerFactory factory,
org.jboss.marshalling.MarshallingConfiguration config)
factory - the MarshallerFactory to use to create Marshallerconfig - the MarshallingConfigurationpublic org.jboss.marshalling.Marshaller getMarshaller(ChannelHandlerContext ctx) throws java.lang.Exception
MarshallerProviderMarshaller for the given ChannelHandlerContextgetMarshaller in interface MarshallerProviderjava.lang.Exception