Class DefaultUnmarshallerProvider
java.lang.Object
io.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)-
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.UnmarshallerGet theUnmarshallerfor the givenChannelHandlerContext
-
Constructor Details
-
DefaultUnmarshallerProvider
public DefaultUnmarshallerProvider(org.jboss.marshalling.MarshallerFactory factory, org.jboss.marshalling.MarshallingConfiguration config) Create a new instance ofDefaultMarshallerProvider- Parameters:
factory- theMarshallerFactoryto use to createUnmarshallerconfig- theMarshallingConfiguration
-
-
Method Details
-
getUnmarshaller
public org.jboss.marshalling.Unmarshaller getUnmarshaller(ChannelHandlerContext ctx) throws Exception Description copied from interface:UnmarshallerProviderGet theUnmarshallerfor the givenChannelHandlerContext- Specified by:
getUnmarshallerin interfaceUnmarshallerProvider- Throws:
Exception
-