org.springframework.binding.convert
Interface ConversionExecutor

All Known Implementing Classes:
RuntimeBindingConversionExecutor, StaticConversionExecutor

public interface ConversionExecutor

A command object that is parameterized with the information necessary to perform a conversion of a source input to a target output. Encapsulates knowledge about how to convert source objects to a specific target type using a specific converter.

Author:
Keith Donald

Method Summary
 Object execute(Object source)
          Execute the conversion for the provided source object.
 Class getSourceClass()
          Returns the source class of conversions performed by this executor.
 Class getTargetClass()
          Returns the target class of conversions performed by this executor.
 

Method Detail

getSourceClass

Class getSourceClass()
Returns the source class of conversions performed by this executor.

Returns:
the source class

getTargetClass

Class getTargetClass()
Returns the target class of conversions performed by this executor.

Returns:
the target class

execute

Object execute(Object source)
               throws ConversionExecutionException
Execute the conversion for the provided source object.

Parameters:
source - the source object to convert
Throws:
ConversionExecutionException