Spring Data Commons

org.springframework.data.convert
Interface TypeInformationMapper

All Known Implementing Classes:
ConfigurableTypeInformationMapper, SimpleTypeInformationMapper

public interface TypeInformationMapper

Interface to abstract the mapping from a type alias to the actual type.

Author:
Oliver Gierke

Method Summary
 Object createAliasFor(TypeInformation<?> type)
          Returns the alias to be used for the given TypeInformation.
 TypeInformation<?> resolveTypeFrom(Object alias)
          Returns the actual TypeInformation to be used for the given alias.
 

Method Detail

resolveTypeFrom

TypeInformation<?> resolveTypeFrom(Object alias)
Returns the actual TypeInformation to be used for the given alias.

Parameters:
alias -
Returns:

createAliasFor

Object createAliasFor(TypeInformation<?> type)
Returns the alias to be used for the given TypeInformation.

Parameters:
type -
Returns:

Spring Data Commons

Copyright © 2012. All Rights Reserved.