public interface MessageMapperFactory
| Modifier and Type | Method and Description |
|---|---|
Optional<MessageMapper> |
mapperOf(String mapperId,
org.eclipse.ditto.model.connectivity.MappingContext context)
Creates an configures a
MessageMapper instance of
the given context. |
MessageMapperRegistry |
registryOf(org.eclipse.ditto.model.connectivity.MappingContext defaultContext,
org.eclipse.ditto.model.connectivity.PayloadMappingDefinition mappingDefinitions)
Creates a
MessageMapperRegistry. |
Optional<MessageMapper> mapperOf(String mapperId, org.eclipse.ditto.model.connectivity.MappingContext context)
MessageMapper instance of
the given context. It is possible, that there is no mapper available for a specific context.mapperId - the id of this mappercontext - the mapping context containing the type and configuration of the mapperNullPointerException - if the context is nullorg.eclipse.ditto.model.connectivity.MessageMapperConfigurationInvalidException - if the configuration of
the context is invalidorg.eclipse.ditto.model.connectivity.MessageMapperConfigurationFailedException - if the configuration of
the context failed for a mapper specific reasonMessageMapperRegistry registryOf(org.eclipse.ditto.model.connectivity.MappingContext defaultContext, org.eclipse.ditto.model.connectivity.PayloadMappingDefinition mappingDefinitions)
MessageMapperRegistry. Mappers that are not available will not be added to the registry.defaultContext - the context used to instantiate the default mappermappingDefinitions - the mapping definitions used to instantiate the registry mapperNullPointerException - if a parameters is nullIllegalArgumentException - if the default mapper could not be instantiatedorg.eclipse.ditto.model.connectivity.MessageMapperConfigurationInvalidException - if the configuration of
the context is invalidorg.eclipse.ditto.model.connectivity.MessageMapperConfigurationFailedException - if the configuration of
the context failed for a mapper specific reasonCopyright © 2017–2019 Eclipse Foundation. All rights reserved.