public class MethodParameterConversionService
extends java.lang.Object
MethodParameter
s and their values to a target type, taking
into account any specific conversion instructions annotated on the parameter with ConvertWith
.Constructor and Description |
---|
MethodParameterConversionService(org.springframework.core.convert.ConversionService delegateConversionService) |
Modifier and Type | Method and Description |
---|---|
boolean |
canConvert(java.lang.Class<?> sourceType,
org.springframework.core.MethodParameter param) |
boolean |
canConvert(org.springframework.core.convert.TypeDescriptor sourceType,
org.springframework.core.MethodParameter param) |
<T> T |
convert(java.lang.Object source,
org.springframework.core.MethodParameter param) |
<T> T |
convert(java.lang.Object source,
org.springframework.core.convert.TypeDescriptor sourceType,
org.springframework.core.MethodParameter param) |
public MethodParameterConversionService(org.springframework.core.convert.ConversionService delegateConversionService)
public boolean canConvert(java.lang.Class<?> sourceType, org.springframework.core.MethodParameter param)
public boolean canConvert(org.springframework.core.convert.TypeDescriptor sourceType, org.springframework.core.MethodParameter param)
public <T> T convert(java.lang.Object source, org.springframework.core.MethodParameter param)
public <T> T convert(java.lang.Object source, org.springframework.core.convert.TypeDescriptor sourceType, org.springframework.core.MethodParameter param)