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