Class ActionSerializerRegistryHelper


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

      • ActionSerializerRegistryHelper

        public ActionSerializerRegistryHelper​(short version,
                                              SerializerRegistry serializerRegistry)
        Constructor.
        Parameters:
        version - Openflow wire version
        serializerRegistry - registry to be filled with message serializers
    • Method Detail

      • registerSerializer

        public <T extends ActionChoice> void registerSerializer​(Class<T> actionType,
                                                                OFGeneralSerializer serializer)
        Registers given serializer.
        Parameters:
        actionType - action type
        serializer - serializer instance