Class MatchEntrySerializerRegistryHelper<C extends OxmClassBase>

java.lang.Object
org.opendaylight.openflowjava.protocol.impl.util.MatchEntrySerializerRegistryHelper<C>
Type Parameters:
C - OXM class

public class MatchEntrySerializerRegistryHelper<C extends OxmClassBase> extends Object
Helper class for registering match entry serializers.
Author:
michal.polkorab
  • Constructor Details

    • MatchEntrySerializerRegistryHelper

      public MatchEntrySerializerRegistryHelper(org.opendaylight.yangtools.yang.common.Uint8 version, C generalClass, SerializerRegistry serializerRegistry)
      Constructor.
      Parameters:
      version - Openflow wire version
      generalClass - class that will be used for match entry serializer registration
      serializerRegistry - registry to be filled with message serializers
  • Method Details

    • registerSerializer

      public <F extends MatchField> void registerSerializer(F specificClass, OFGeneralSerializer serializer)
      Registers the given serializer.
      Parameters:
      specificClass - the MatchField class
      serializer - the serializer instance
    • registerExperimenterSerializer

      public <F extends MatchField> void registerExperimenterSerializer(F specificClass, org.opendaylight.yangtools.yang.common.Uint32 expId, OFGeneralSerializer serializer)
      Registers ExperimenterClass type match serializer.
      Parameters:
      specificClass - the MatchField class
      serializer - the serializer instance