Class SimpleDeserializerRegistryHelper

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

public class SimpleDeserializerRegistryHelper extends Object
Helper class for deserializer registration.
Author:
michal.polkorab
  • Constructor Details

    • SimpleDeserializerRegistryHelper

      public SimpleDeserializerRegistryHelper(short version, DeserializerRegistry deserializerRegistry)
      Constructor.
      Parameters:
      version - wire protocol version
      deserializerRegistry - registry to be filled with message deserializers
  • Method Details

    • registerDeserializer

      public void registerDeserializer(int code, Class<?> deserializedObjectClass, OFGeneralDeserializer deserializer)
      Register deserializer in registry. If deserializer supports more protocol versions assign actual one.
      Parameters:
      code - code / value to distinguish between deserializers
      deserializedObjectClass - class of object that will be deserialized by given deserializer
      deserializer - deserializer instance