java.lang.Object
org.opendaylight.openflowplugin.openflow.md.core.sal.convertor.common.ConvertReactor<F>
Type Parameters:
F - source type for conversion

public abstract class ConvertReactor<F> extends Object
Base class for a conversion reactor.
  • Constructor Details

    • ConvertReactor

      protected ConvertReactor()
  • Method Details

    • initMappings

      protected abstract void initMappings(Map<org.opendaylight.yangtools.yang.common.Uint8,ConvertReactorConvertor<F,?>> conversions, Map<ConvertorKey,ResultInjector<?,?>> injections)
      Fill conversion and injection mappings.
      Parameters:
      conversions - convert from
      injections - injection
    • convert

      public <R, T> void convert(F source, org.opendaylight.yangtools.yang.common.Uint8 version, T target, ConvertorExecutor convertorExecutor)
      Converts a source to a target.
      Type Parameters:
      R - result
      T - target
      Parameters:
      source - convert from
      version - openflow version
      target - convert to
      convertorExecutor - the convertor executor
    • buildInjectionKey

      protected ConvertorKey buildInjectionKey(org.opendaylight.yangtools.yang.common.Uint8 version, Object convertedItem, Object target)
      Builds an injection key.
      Parameters:
      version - openflow version
      convertedItem - to be injected
      target - object
      Returns:
      injection key