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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAttempts to convertsourceinto the target type as described bytargetTypeDescriptor.Class<?>getSpringConvertedType(Class<?> clazz) Gets spring converted type.voidsetApplicationContext(org.springframework.context.ApplicationContext applicationContext)
-
Constructor Details
-
WebConversionServiceProvider
public WebConversionServiceProvider()
-
-
Method Details
-
afterPropertiesSet
public void afterPropertiesSet()- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean
-
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
-
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:
setApplicationContextin interfaceorg.springframework.context.ApplicationContextAware- Throws:
org.springframework.beans.BeansException
-