public class DefaultUnmarshallerProvider extends java.lang.Object implements UnmarshallerProvider
UnmarshallerProvider which will just create a new Unmarshaller
on every call to getUnmarshaller(ChannelHandlerContext)| Modifier and Type | Field and Description |
|---|---|
private org.jboss.marshalling.MarshallingConfiguration |
config |
private org.jboss.marshalling.MarshallerFactory |
factory |
| Constructor and Description |
|---|
DefaultUnmarshallerProvider(org.jboss.marshalling.MarshallerFactory factory,
org.jboss.marshalling.MarshallingConfiguration config)
Create a new instance of
DefaultMarshallerProvider |
| Modifier and Type | Method and Description |
|---|---|
org.jboss.marshalling.Unmarshaller |
getUnmarshaller(ChannelHandlerContext ctx)
Get the
Unmarshaller for the given ChannelHandlerContext |
private final org.jboss.marshalling.MarshallerFactory factory
private final org.jboss.marshalling.MarshallingConfiguration config
public DefaultUnmarshallerProvider(org.jboss.marshalling.MarshallerFactory factory,
org.jboss.marshalling.MarshallingConfiguration config)
DefaultMarshallerProviderfactory - the MarshallerFactory to use to create Unmarshallerconfig - the MarshallingConfigurationpublic org.jboss.marshalling.Unmarshaller getUnmarshaller(ChannelHandlerContext ctx) throws java.lang.Exception
UnmarshallerProviderUnmarshaller for the given ChannelHandlerContextgetUnmarshaller in interface UnmarshallerProviderjava.lang.Exception