public class ConfigurableTypeInformationMapper extends Object implements TypeInformationMapper
TypeInformationMapper implementation that can be either set up using a MappingContext or manually set
up Map of String aliases to types. If a MappingContext is used the Map will be build
inspecting the PersistentEntity instances for type alias information.| Constructor and Description |
|---|
ConfigurableTypeInformationMapper(Map<? extends Class<?>,String> sourceTypeMap)
Creates a new
ConfigurableTypeInformationMapper for the given type map. |
| Modifier and Type | Method and Description |
|---|---|
Alias |
createAliasFor(TypeInformation<?> type)
Returns the alias to be used for the given
TypeInformation. |
TypeInformation<?> |
resolveTypeFrom(Alias alias)
Returns the actual
TypeInformation to be used for the given alias. |
public ConfigurableTypeInformationMapper(Map<? extends Class<?>,String> sourceTypeMap)
ConfigurableTypeInformationMapper for the given type map.sourceTypeMap - must not be null.public Alias createAliasFor(TypeInformation<?> type)
TypeInformationMapperTypeInformation.createAliasFor in interface TypeInformationMappertype - must not be null.@Nullable public TypeInformation<?> resolveTypeFrom(Alias alias)
TypeInformationMapperTypeInformation to be used for the given alias.resolveTypeFrom in interface TypeInformationMapperalias - must not be null.Copyright © 2011–2021 Pivotal Software, Inc.. All rights reserved.