| java.lang.Object org.springframework.binding.convert.support.GenericConversionService
All known Subclasses: org.springframework.binding.convert.support.DefaultConversionService,
GenericConversionService | public class GenericConversionService implements ConversionService(Code) | | Base implementation of a conversion service. Initially empty, e.g. no converters
are registered by default.
author: Keith Donald |
addAlias | public void addAlias(String alias, Class targetType)(Code) | | Add an alias for given target type.
|
addConverter | public void addConverter(Converter converter)(Code) | | Add given converter to this conversion service. If the converter is
ConversionServiceAware , it will get the conversion service
injected.
|
addConverter | public void addConverter(Converter converter, String alias)(Code) | | Add given converter with an alias to the conversion service. If the
converter is
ConversionServiceAware , it will get the conversion
service injected.
|
addConverters | public void addConverters(Converter[] converters)(Code) | | Add all given converters. If the converters are
ConversionServiceAware , they will get the conversion service
injected.
|
addDefaultAlias | public void addDefaultAlias(Class targetType)(Code) | | Generate a conventions based alias for given target type. For instance,
"java.lang.Boolean" will get the "boolean" alias.
|
getAliasMap | protected Map getAliasMap()(Code) | | Returns a map of known aliases. Each entry key is a String alias and the
associated value is either a target class or a converter.
|
getSourceClassConverters | protected Map getSourceClassConverters()(Code) | | Returns an indexed map of converters. Each entry key is a source class that
can be converted from, and each entry value is a map of target classes that
can be convertered to, ultimately mapping to a specific converter that can
perform the source->target conversion.
|
setParent | public void setParent(ConversionService parent)(Code) | | Set the parent of this conversion service. This is optional.
|
|
|