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 Details
-
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
Execute the conversion for the provided source object.- Parameters:
source
- the source object to convert- Throws:
ConversionExecutionException
-