Package org.springdoc.core.providers
Class WebConversionServiceProvider
- java.lang.Object
-
- org.springdoc.core.providers.WebConversionServiceProvider
-
public class WebConversionServiceProvider extends Object
The type Web conversion service provider.- Author:
- bnasslashen
-
-
Constructor Summary
Constructors Constructor Description WebConversionServiceProvider(Optional<List<org.springframework.core.convert.support.GenericConversionService>> webConversionServiceOptional)Instantiates a new Web conversion service provider.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Objectconvert(Object source, org.springframework.core.convert.TypeDescriptor targetTypeDescriptor)Attempts to convertsourceinto the target type as described bytargetTypeDescriptor.Class<?>getSpringConvertedType(Class<?> clazz)Gets spring converted type.
-
-
-
Constructor Detail
-
WebConversionServiceProvider
public WebConversionServiceProvider(Optional<List<org.springframework.core.convert.support.GenericConversionService>> webConversionServiceOptional)
Instantiates a new Web conversion service provider.- Parameters:
webConversionServiceOptional- the web conversion service optional
-
-
Method Detail
-
convert
@Nullable public Object convert(@Nullable Object source, org.springframework.core.convert.TypeDescriptor targetTypeDescriptor)
Attempts to convertsourceinto the target type as described bytargetTypeDescriptor.- Parameters:
source- the sourcetargetTypeDescriptor- the target type descriptor- Returns:
- the converted source
-
-