Class SpringStandardConversionService

  • All Implemented Interfaces:
    org.thymeleaf.standard.expression.IStandardConversionService

    public final class SpringStandardConversionService
    extends org.thymeleaf.standard.expression.AbstractStandardConversionService

    Implementation of IStandardConversionService that delegates to Spring's type conversion system.

    If there is a ConversionService available at the application context, it will be used for conversion.

    Since:
    3.0.3
    Author:
    Daniel Fernández
    • Constructor Detail

      • SpringStandardConversionService

        public SpringStandardConversionService()
    • Method Detail

      • convertToString

        protected String convertToString​(org.thymeleaf.context.IExpressionContext context,
                                         Object object)
        Overrides:
        convertToString in class org.thymeleaf.standard.expression.AbstractStandardConversionService
      • convertOther

        protected <T> T convertOther​(org.thymeleaf.context.IExpressionContext context,
                                     Object object,
                                     Class<T> targetClass)
        Overrides:
        convertOther in class org.thymeleaf.standard.expression.AbstractStandardConversionService