| org.springframework.binding.convert.ConversionService
All known Subclasses: org.springframework.binding.convert.support.CompositeConversionService, org.springframework.binding.convert.support.GenericConversionService,
ConversionService | public interface ConversionService (Code) | | A service interface for retrieving type conversion executors. The returned
command objects are thread-safe and may be safely cached for use by client
code.
author: Keith Donald |
getClassByAlias | public Class getClassByAlias(String alias) throws ConversionException(Code) | | Return the class with the specified alias.
Parameters: alias - the class alias the class, or null if not aliased throws: ConversionException - when an error occurs looking up the class by alias |
getConversionExecutor | public ConversionExecutor getConversionExecutor(Class sourceClass, Class targetClass) throws ConversionException(Code) | | Return a conversion executor command object capable of converting source
objects of the specified sourceClass to instances of the
targetClass .
The returned ConversionExecutor is thread-safe and may safely be cached
for use in client code.
Parameters: sourceClass - the source class to convert from Parameters: targetClass - the target class to convert to the executor that can execute instance conversion, never null throws: ConversionException - an exception occured retrieving a converterfor the source-to-target pair |
getConversionExecutorByTargetAlias | public ConversionExecutor getConversionExecutorByTargetAlias(Class sourceClass, String targetAlias) throws ConversionException(Code) | | Return a conversion executor command object capable of converting source
objects of the specified sourceClass to target objects of
the type associated with the specified alias.
Parameters: sourceClass - the sourceClass Parameters: targetAlias - the target alias the conversion executor, or null if the alias cannot be found throws: ConversionException - an exception occured retrieving a converterfor the source-to-target pair |
getConversionExecutorsForSource | public ConversionExecutor[] getConversionExecutorsForSource(Class sourceClass) throws ConversionException(Code) | | Return all conversion executors capable of converting source objects of
the the specified sourceClass .
Parameters: sourceClass - the source class to convert from the matching conversion executors throws: ConversionException - an exception occured retrieving the converters |
|
|