| java.lang.Object org.springframework.binding.convert.ConversionExecutor
ConversionExecutor | public class ConversionExecutor (Code) | | A command object that is parameterized with the information necessary to
perform a conversion of a source input to a target output.
Specifically, encapsulates knowledge about how to convert source objects to a
specific target type using a specific converter.
author: Keith Donald |
ConversionExecutor | public ConversionExecutor(Class sourceClass, Class targetClass, Converter converter)(Code) | | Creates a conversion executor.
Parameters: sourceClass - the source type that the converter will convert from Parameters: targetClass - the target type that the converter will convert to Parameters: converter - the converter that will perform the conversion |
execute | public Object execute(Object source, ConversionContext context) throws ConversionException(Code) | | Execute the conversion for the provided source object.
Parameters: source - the source object to convert Parameters: context - the conversion context, useful for influencing thebehavior of the converter |
getConverter | public Converter getConverter()(Code) | | Returns the converter that will perform the conversion.
the converter |
getSourceClass | public Class getSourceClass()(Code) | | Returns the source class of conversions performed by this executor.
the source class |
getTargetClass | public Class getTargetClass()(Code) | | Returns the target class of conversions performed by this executor.
the target class |
hashCode | public int hashCode()(Code) | | |
|
|