Class DefaultUnmarshallerProvider
java.lang.Object
org.jboss.netty.handler.codec.marshalling.DefaultUnmarshallerProvider
- All Implemented Interfaces:
UnmarshallerProvider
- Direct Known Subclasses:
ContextBoundUnmarshallerProvider
Default implementation of
UnmarshallerProvider
which will just create a new Unmarshaller
on every call to getUnmarshaller(ChannelHandlerContext)
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDefaultUnmarshallerProvider
(org.jboss.marshalling.MarshallerFactory factory, org.jboss.marshalling.MarshallingConfiguration config) Create a new instance ofDefaultMarshallerProvider
-
Method Summary
Modifier and TypeMethodDescriptionorg.jboss.marshalling.Unmarshaller
Get theUnmarshaller
for the givenChannelHandlerContext
-
Field Details
-
factory
private final org.jboss.marshalling.MarshallerFactory factory -
config
private final org.jboss.marshalling.MarshallingConfiguration config
-
-
Constructor Details
-
DefaultUnmarshallerProvider
public DefaultUnmarshallerProvider(org.jboss.marshalling.MarshallerFactory factory, org.jboss.marshalling.MarshallingConfiguration config) Create a new instance ofDefaultMarshallerProvider
- Parameters:
factory
- theMarshallerFactory
to use to createUnmarshaller
config
- theMarshallingConfiguration
-
-
Method Details
-
getUnmarshaller
public org.jboss.marshalling.Unmarshaller getUnmarshaller(ChannelHandlerContext ctx) throws Exception Description copied from interface:UnmarshallerProvider
Get theUnmarshaller
for the givenChannelHandlerContext
- Specified by:
getUnmarshaller
in interfaceUnmarshallerProvider
- Throws:
Exception
-