Class CommonMessageRegistryHelper
java.lang.Object
org.opendaylight.openflowjava.protocol.impl.util.CommonMessageRegistryHelper
Helper class for serializer registration.
- Author:
- michal.polkorab
-
Constructor Summary
ConstructorDescriptionCommonMessageRegistryHelper
(org.opendaylight.yangtools.yang.common.Uint8 version, SerializerRegistry serializerRegistry) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoid
registerSerializer
(Class<?> msgType, OFGeneralSerializer serializer) Registers serializer in registry.
-
Constructor Details
-
CommonMessageRegistryHelper
public CommonMessageRegistryHelper(org.opendaylight.yangtools.yang.common.Uint8 version, SerializerRegistry serializerRegistry) Constructor.- Parameters:
version
- wire protocol versionserializerRegistry
- registry to be filled with message serializers
-
-
Method Details
-
registerSerializer
Registers serializer in registry.- Parameters:
msgType
- class of object that will be serialized by given serializerserializer
- serializer instance
-