Class WebConversionServiceProvider


  • public class WebConversionServiceProvider
    extends Object
    The type Web conversion service provider.
    Author:
    bnasslashen
    • 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 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