Package org.springdoc.core.providers
Class WebConversionServiceProvider
java.lang.Object
org.springdoc.core.providers.WebConversionServiceProvider
- All Implemented Interfaces:
org.springframework.beans.factory.Aware
,org.springframework.beans.factory.InitializingBean
,org.springframework.context.ApplicationContextAware
public class WebConversionServiceProvider
extends Object
implements org.springframework.beans.factory.InitializingBean, org.springframework.context.ApplicationContextAware
The type Web conversion service provider.
- Author:
- bnasslashen
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Attempts to convertsource
into the target type as described bytargetTypeDescriptor
.Class<?>
getSpringConvertedType
(Class<?> clazz) Gets spring converted type.void
setApplicationContext
(org.springframework.context.ApplicationContext applicationContext)
-
Constructor Details
-
WebConversionServiceProvider
public WebConversionServiceProvider()
-
-
Method Details
-
afterPropertiesSet
public void afterPropertiesSet()- Specified by:
afterPropertiesSet
in interfaceorg.springframework.beans.factory.InitializingBean
-
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
-
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException - Specified by:
setApplicationContext
in interfaceorg.springframework.context.ApplicationContextAware
- Throws:
org.springframework.beans.BeansException
-