Class TypeToClassInitHelper

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

public class TypeToClassInitHelper extends Object
Helper for initializing type to class mappings.
Author:
michal.polkorab
  • Constructor Details

    • TypeToClassInitHelper

      public TypeToClassInitHelper(org.opendaylight.yangtools.yang.common.Uint8 version, Map<TypeToClassKey,Class<?>> messageClassMap)
      Constructor.
      Parameters:
      version - protocol wire version
      messageClassMap - map which stores type to class mapping
  • Method Details

    • registerTypeToClass

      public void registerTypeToClass(short type, Class<?> clazz)
      Registers Class int the type to class mapping.
      Parameters:
      type - code value for message type / class
      clazz - class corresponding to the code