Class CommonMessageRegistryHelper

java.lang.Object
org.opendaylight.openflowjava.protocol.impl.util.CommonMessageRegistryHelper

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

    • 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 Details

    • 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