Class SimpleDeserializerRegistryHelper
java.lang.Object
org.opendaylight.openflowjava.protocol.impl.util.SimpleDeserializerRegistryHelper
Helper class for deserializer registration.
- Author:
- michal.polkorab
-
Constructor Summary
ConstructorDescriptionSimpleDeserializerRegistryHelper
(short version, DeserializerRegistry deserializerRegistry) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoid
registerDeserializer
(int code, Class<?> deserializedObjectClass, OFGeneralDeserializer deserializer) Register deserializer in registry.
-
Constructor Details
-
SimpleDeserializerRegistryHelper
Constructor.- Parameters:
version
- wire protocol versiondeserializerRegistry
- registry to be filled with message deserializers
-
-
Method Details
-
registerDeserializer
public void registerDeserializer(int code, Class<?> deserializedObjectClass, OFGeneralDeserializer deserializer) Register deserializer in registry. If deserializer supports more protocol versions assign actual one.- Parameters:
code
- code / value to distinguish between deserializersdeserializedObjectClass
- class of object that will be deserialized by given deserializerdeserializer
- deserializer instance
-