Package org.appng.core.templating
Class AppNGThymeleafDialect
- java.lang.Object
-
- org.thymeleaf.dialect.AbstractDialect
-
- org.thymeleaf.dialect.AbstractProcessorDialect
-
- org.thymeleaf.standard.StandardDialect
-
- org.thymeleaf.spring4.dialect.SpringStandardDialect
-
- org.appng.core.templating.AppNGThymeleafDialect
-
- All Implemented Interfaces:
org.thymeleaf.dialect.IDialect
,org.thymeleaf.dialect.IExecutionAttributeDialect
,org.thymeleaf.dialect.IExpressionObjectDialect
,org.thymeleaf.dialect.IProcessorDialect
public class AppNGThymeleafDialect extends org.thymeleaf.spring4.dialect.SpringStandardDialect
An appNG specific Thymeleaf dialect to enable the functionality to add application-specific interceptors. An interceptor can redirect the 'replace' call of a fragment.- Author:
- Claus Stümke
-
-
Constructor Summary
Constructors Constructor Description AppNGThymeleafDialect()
AppNGThymeleafDialect(Collection<ThymeleafReplaceInterceptor> interceptors)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Set<org.thymeleaf.processor.IProcessor>
getProcessors(String dialectPrefix)
Get all processors as composed by theSpringStandardDialect
, remove the processor for the replace tag and add our own replace tag processor which enables the usage of interceptors.-
Methods inherited from class org.thymeleaf.spring4.dialect.SpringStandardDialect
createSpringStandardProcessorsSet, createSpringStandardProcessorsSet, getConversionService, getEnableSpringELCompiler, getExecutionAttributes, getExpressionObjectFactory, getRenderHiddenMarkersBeforeCheckboxes, getVariableExpressionEvaluator, setEnableSpringELCompiler, setRenderHiddenMarkersBeforeCheckboxes
-
Methods inherited from class org.thymeleaf.standard.StandardDialect
createStandardProcessorsSet, getCSSSerializer, getExpressionParser, getJavaScriptSerializer, setConversionService, setCSSSerializer, setExpressionParser, setJavaScriptSerializer, setVariableExpressionEvaluator
-
Methods inherited from class org.thymeleaf.dialect.AbstractProcessorDialect
getDialectProcessorPrecedence, getPrefix
-
-
-
-
Constructor Detail
-
AppNGThymeleafDialect
public AppNGThymeleafDialect(Collection<ThymeleafReplaceInterceptor> interceptors)
-
AppNGThymeleafDialect
public AppNGThymeleafDialect()
-
-
Method Detail
-
getProcessors
public Set<org.thymeleaf.processor.IProcessor> getProcessors(String dialectPrefix)
Get all processors as composed by theSpringStandardDialect
, remove the processor for the replace tag and add our own replace tag processor which enables the usage of interceptors.- Specified by:
getProcessors
in interfaceorg.thymeleaf.dialect.IProcessorDialect
- Overrides:
getProcessors
in classorg.thymeleaf.spring4.dialect.SpringStandardDialect
-
-