Class ConvertReactor<F>

  • Type Parameters:
    F - source type for conversion

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

      • ConvertReactor

        protected ConvertReactor()
    • Method Detail

      • initMappings

        protected abstract void initMappings​(Map<org.opendaylight.yangtools.yang.common.Uint8,​ConvertReactorConvertor<F,​?>> conversions,
                                             Map<ConvertorKey,​ResultInjector<?,​?>> injections)
        Fill conversion and injection mappings.
        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
        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.
        version - openflow version
        convertedItem - to be injected
        target - object
        injection key