Class SimpleDeserializerRegistryHelper


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

      • SimpleDeserializerRegistryHelper

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

      • 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