Class ConvertReactor<F>
java.lang.Object
org.opendaylight.openflowplugin.openflow.md.core.sal.convertor.common.ConvertReactor<F>
- Type Parameters:
F
- source type for conversion
Base class for a conversion reactor.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected ConvertorKey
buildInjectionKey
(org.opendaylight.yangtools.yang.common.Uint8 version, Object convertedItem, Object target) Builds an injection key.<R,
T> void convert
(F source, org.opendaylight.yangtools.yang.common.Uint8 version, T target, ConvertorExecutor convertorExecutor) Converts a source to a target.protected abstract void
initMappings
(Map<org.opendaylight.yangtools.yang.common.Uint8, ConvertReactorConvertor<F, ?>> conversions, Map<ConvertorKey, ResultInjector<?, ?>> injections) Fill conversion and injection mappings.
-
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 frominjections
- 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
- resultT
- target- Parameters:
source
- convert fromversion
- openflow versiontarget
- convert toconvertorExecutor
- 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 versionconvertedItem
- to be injectedtarget
- object- Returns:
- injection key
-