Class CommonMessageRegistryHelper


  • public class CommonMessageRegistryHelper
    extends Object
    Helper class for serializer registration.
    Author:
    michal.polkorab
    • Constructor Detail

      • CommonMessageRegistryHelper

        public CommonMessageRegistryHelper​(org.opendaylight.yangtools.yang.common.Uint8 version,
                                           SerializerRegistry serializerRegistry)
        Constructor.
        Parameters:
        version - wire protocol version
        serializerRegistry - 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 serializer
        serializer - serializer instance