Class SimpleDeserializerRegistryHelper
- java.lang.Object
-
- org.opendaylight.openflowjava.protocol.impl.util.SimpleDeserializerRegistryHelper
-
public class SimpleDeserializerRegistryHelper extends Object
Helper class for deserializer registration.- Author:
- michal.polkorab
-
-
Constructor Summary
Constructors Constructor Description SimpleDeserializerRegistryHelper(short version, DeserializerRegistry deserializerRegistry)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
registerDeserializer(int code, Class<?> deserializedObjectClass, OFGeneralDeserializer deserializer)
Register deserializer in registry.
-
-
-
Constructor Detail
-
SimpleDeserializerRegistryHelper
public SimpleDeserializerRegistryHelper(short version, DeserializerRegistry deserializerRegistry)
Constructor.- Parameters:
version
- wire protocol versiondeserializerRegistry
- registry to be filled with message deserializers
-
-
Method Detail
-
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
-
-