Package org.springdoc.core.providers
Class WebConversionServiceProvider
java.lang.Object
org.springdoc.core.providers.WebConversionServiceProvider
The type Web conversion service provider.
- Author:
- bnasslashen
-
Constructor Summary
ConstructorsConstructorDescriptionWebConversionServiceProvider
(Optional<org.springframework.core.convert.support.GenericConversionService> webConversionServiceOptional) Instantiates a new Web conversion service provider. -
Method Summary
-
Constructor Details
-
WebConversionServiceProvider
public WebConversionServiceProvider(Optional<org.springframework.core.convert.support.GenericConversionService> webConversionServiceOptional) Instantiates a new Web conversion service provider.- Parameters:
webConversionServiceOptional
- the web conversion service optional
-
-
Method Details
-
convert
@Nullable public Object convert(@Nullable Object source, org.springframework.core.convert.TypeDescriptor targetTypeDescriptor) Attempts to convertsource
into the target type as described bytargetTypeDescriptor
.- Parameters:
source
- the sourcetargetTypeDescriptor
- the target type descriptor- Returns:
- the converted source
-
getSpringConvertedType
Gets spring converted type.- Parameters:
clazz
- the clazz- Returns:
- the spring converted type
-