public class SpringStandardDialect
extends org.thymeleaf.standard.StandardDialect
SpringStandard Dialect. This is the class containing the implementation of Thymeleaf Standard Dialect, including all th:* processors, expression objects, etc. for Spring-enabled environments.
Note this dialect uses SpringEL as an expression language and adds some Spring-specific
features on top of StandardDialect, like th:field or Spring-related expression objects.
The usual and recommended way of using this dialect is by instancing SpringTemplateEngine
instead of TemplateEngine. The former will automatically add this dialect and perform
some specific configuration like e.g. Spring-integrated message resolution.
Note a class with this name existed since 1.0, but it was completely reimplemented in Thymeleaf 3.0
| Modifier and Type | Field and Description |
|---|---|
static String |
NAME |
static String |
PREFIX |
static int |
PROCESSOR_PRECEDENCE |
| Constructor and Description |
|---|
SpringStandardDialect() |
| Modifier and Type | Method and Description |
|---|---|
static Set<org.thymeleaf.processor.IProcessor> |
createSpringStandardProcessorsSet(String dialectPrefix)
Create a the set of SpringStandard processors, all of them freshly instanced.
|
org.thymeleaf.standard.expression.IStandardConversionService |
getConversionService() |
org.thymeleaf.expression.IExpressionObjectFactory |
getExpressionObjectFactory() |
Set<org.thymeleaf.processor.IProcessor> |
getProcessors(String dialectPrefix) |
org.thymeleaf.standard.expression.IStandardVariableExpressionEvaluator |
getVariableExpressionEvaluator() |
createStandardProcessorsSet, getCSSSerializer, getExecutionAttributes, getExpressionParser, getJavaScriptSerializer, setConversionService, setCSSSerializer, setExpressionParser, setJavaScriptSerializer, setVariableExpressionEvaluatorgetDialectProcessorPrecedence, getPrefixpublic static final String NAME
public static final String PREFIX
public static final int PROCESSOR_PRECEDENCE
public org.thymeleaf.standard.expression.IStandardVariableExpressionEvaluator getVariableExpressionEvaluator()
getVariableExpressionEvaluator in class org.thymeleaf.standard.StandardDialectpublic org.thymeleaf.standard.expression.IStandardConversionService getConversionService()
getConversionService in class org.thymeleaf.standard.StandardDialectpublic org.thymeleaf.expression.IExpressionObjectFactory getExpressionObjectFactory()
getExpressionObjectFactory in interface org.thymeleaf.dialect.IExpressionObjectDialectgetExpressionObjectFactory in class org.thymeleaf.standard.StandardDialectpublic Set<org.thymeleaf.processor.IProcessor> getProcessors(String dialectPrefix)
getProcessors in interface org.thymeleaf.dialect.IProcessorDialectgetProcessors in class org.thymeleaf.standard.StandardDialectpublic static Set<org.thymeleaf.processor.IProcessor> createSpringStandardProcessorsSet(String dialectPrefix)
Create a the set of SpringStandard processors, all of them freshly instanced.
dialectPrefix - the prefix established for the Standard Dialect, needed for initializationCopyright © 2017 The THYMELEAF team. All rights reserved.