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 Details

    • WebConversionServiceProvider

      public WebConversionServiceProvider()
  • Method Details

    • afterPropertiesSet

      public void afterPropertiesSet()
      Specified by:
      afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
    • convert

      @Nullable public Object convert(@Nullable Object source, org.springframework.core.convert.TypeDescriptor targetTypeDescriptor)
      Attempts to convert source into the target type as described by targetTypeDescriptor.
      Parameters:
      source - the source
      targetTypeDescriptor - the target type descriptor
      Returns:
      the converted source
    • getSpringConvertedType

      public Class<?> getSpringConvertedType(Class<?> clazz)
      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 interface org.springframework.context.ApplicationContextAware
      Throws:
      org.springframework.beans.BeansException