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
ConfigurableTypeMapper for the given type map. |
| Modifier and Type | Method and Description |
|---|---|
Object |
createAliasFor(TypeInformation<?> type)
Returns the alias to be used for the given
TypeInformation. |
ClassTypeInformation<?> |
resolveTypeFrom(Object alias)
Returns the actual
TypeInformation to be used for the given alias. |
public Object createAliasFor(TypeInformation<?> type)
TypeInformationMapperTypeInformation.createAliasFor in interface TypeInformationMapperpublic ClassTypeInformation<?> resolveTypeFrom(Object alias)
TypeInformationMapperTypeInformation to be used for the given alias.resolveTypeFrom in interface TypeInformationMapperalias - can be null.Copyright © 2011-2015–2015 Pivotal Software, Inc.. All rights reserved.