public class DeserializationFactory extends Object
Constructor and Description |
---|
DeserializationFactory(DeserializerRegistry registry) |
Modifier and Type | Method and Description |
---|---|
org.opendaylight.yangtools.yang.binding.DataObject |
deserialize(io.netty.buffer.ByteBuf rawMessage,
short version)
Transforms ByteBuf into correct POJO message.
|
void |
registerMapping(TypeToClassKey key,
Class<?> clazz)
Register new type to class mapping used to assign return type when deserializing message.
|
boolean |
unregisterMapping(TypeToClassKey key)
Unregister type to class mapping used to assign return type when deserializing message.
|
public DeserializationFactory(DeserializerRegistry registry)
public org.opendaylight.yangtools.yang.binding.DataObject deserialize(io.netty.buffer.ByteBuf rawMessage, short version)
rawMessage
- the messageversion
- version decoded from OpenFlow protocol messagepublic void registerMapping(TypeToClassKey key, Class<?> clazz)
key
- type to class keyclazz
- return classpublic boolean unregisterMapping(TypeToClassKey key)
key
- type to class keyCopyright © 2020 OpenDaylight. All rights reserved.