Class InstructionSerializerRegistryHelper


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

      • InstructionSerializerRegistryHelper

        public InstructionSerializerRegistryHelper​(short 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