public class WebConversionServiceProvider extends Object
Constructor and Description |
---|
WebConversionServiceProvider(Optional<org.springframework.boot.autoconfigure.web.format.WebConversionService> webConversionServiceOptional)
Instantiates a new Web conversion service provider.
|
Modifier and Type | Method and Description |
---|---|
Object |
convert(Object source,
org.springframework.core.convert.TypeDescriptor targetTypeDescriptor)
Attempts to convert
source into the target type as described by targetTypeDescriptor . |
public WebConversionServiceProvider(Optional<org.springframework.boot.autoconfigure.web.format.WebConversionService> webConversionServiceOptional)
webConversionServiceOptional
- the web conversion service optional@Nullable public Object convert(@Nullable Object source, org.springframework.core.convert.TypeDescriptor targetTypeDescriptor)
source
into the target type as described by targetTypeDescriptor
.source
- the sourcetargetTypeDescriptor
- the target type descriptorCopyright © 2021. All rights reserved.