Class CommonMessageRegistryHelper
- java.lang.Object
-
- org.opendaylight.openflowjava.protocol.impl.util.CommonMessageRegistryHelper
-
public class CommonMessageRegistryHelper extends Object
Helper class for serializer registration.- Author:
- michal.polkorab
-
-
Constructor Summary
Constructors Constructor Description CommonMessageRegistryHelper(short version, SerializerRegistry serializerRegistry)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
registerSerializer(Class<?> msgType, OFGeneralSerializer serializer)
Registers serializer in registry.
-
-
-
Constructor Detail
-
CommonMessageRegistryHelper
public CommonMessageRegistryHelper(short version, SerializerRegistry serializerRegistry)
Constructor.- Parameters:
version
- wire protocol versionserializerRegistry
- registry to be filled with message serializers
-
-
Method Detail
-
registerSerializer
public void registerSerializer(Class<?> msgType, OFGeneralSerializer serializer)
Registers serializer in registry.- Parameters:
msgType
- class of object that will be serialized by given serializerserializer
- serializer instance
-
-