Class InstructionSerializerRegistryHelper


  • public class InstructionSerializerRegistryHelper
    extends Object
    Helper class for registering instruction serializers.
    Author:
    michal.polkorab
    • Constructor Detail

      • InstructionSerializerRegistryHelper

        public InstructionSerializerRegistryHelper​(org.opendaylight.yangtools.yang.common.Uint8 version,
                                                   SerializerRegistry serializerRegistry)
        Constructor.
        Parameters:
        version - Openflow wire version
        serializerRegistry - registry to be filled with message serializers
    • Method Detail

      • registerSerializer

        public <T extends InstructionChoice> void registerSerializer​(Class<T> instructionType,
                                                                     OFGeneralSerializer serializer)
        Registers given serializer.
        Parameters:
        instructionType - instruction type
        serializer - serializer instance