Common interface for all implementations of a conversion service, to be used during template execution.
Thymeleaf conversion services work in a way similar to Spring Framework's ConversionService interface, but this is a generic mechanism (not dependent on Spring).
Default implementation —registered by {@link org.thymeleaf.standard.StandardDialect}— is {@link StandardConversionService}, which performs some standard conversions, but the Spring Standard Dialect used by the Thymeleaf + Spring integration module automatically registers an implementation of this interface that delegates on any existing Spring ConversionService objects (thus using the Converters and Formatters regitered at the Spring Application Context).
Important: there is one conversion that implementations of this interface should always implement, because it is heavily used at the Thymeleaf core: conversion of any Object to String.
The implementation of this interface that should be used is specified as an execution attribute by the Standard Dialects (see {@link org.thymeleaf.standard.StandardDialect#getExecutionAttributes()}).
Implementations of this interface should be thread-safe.
@author Daniel Fernández @since 2.1.0
|
|
|
|
|
|