public class RuntimeBindingConversionExecutor extends Object implements ConversionExecutor
Constructor and Description |
---|
RuntimeBindingConversionExecutor(Class targetClass,
ConversionService conversionService)
Creates a new runtime binding conversion executor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
Object |
execute(Object source)
Execute the conversion for the provided source object.
|
Object |
execute(Object source,
Object context) |
Class |
getSourceClass()
Returns the source class of conversions performed by this executor.
|
Class |
getTargetClass()
Returns the target class of conversions performed by this executor.
|
int |
hashCode() |
public RuntimeBindingConversionExecutor(Class targetClass, ConversionService conversionService)
targetClass
- the target type to convert toconversionService
- the conversion service to get converters frompublic Class getSourceClass()
ConversionExecutor
getSourceClass
in interface ConversionExecutor
public Class getTargetClass()
ConversionExecutor
getTargetClass
in interface ConversionExecutor
public Object execute(Object source) throws ConversionExecutionException
ConversionExecutor
execute
in interface ConversionExecutor
source
- the source object to convertConversionExecutionException
public Object execute(Object source, Object context) throws ConversionExecutionException
ConversionExecutionException