Class SpringResourceTemplateResolver
- Object
-
- org.thymeleaf.templateresolver.AbstractTemplateResolver
-
- org.thymeleaf.templateresolver.AbstractConfigurableTemplateResolver
-
- org.thymeleaf.spring3.templateresolver.SpringResourceTemplateResolver
-
- All Implemented Interfaces:
org.springframework.beans.factory.Aware
,org.springframework.context.ApplicationContextAware
,org.thymeleaf.templateresolver.ITemplateResolver
public class SpringResourceTemplateResolver extends org.thymeleaf.templateresolver.AbstractConfigurableTemplateResolver implements org.springframework.context.ApplicationContextAware
Implementation of
ITemplateResolver
that extendsAbstractConfigurableTemplateResolver
and resolves templates using Spring's Resource Resolution mechanism (seeResourceLoader.getResource(String)
).- Since:
- 2.1.0
- Author:
- Daniel Fernández
-
-
Constructor Summary
Constructors Constructor Description SpringResourceTemplateResolver()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.thymeleaf.templateresource.ITemplateResource
computeTemplateResource(org.thymeleaf.IEngineConfiguration configuration, String ownerTemplate, String template, String resourceName, String characterEncoding, Map<String,Object> templateResolutionAttributes)
void
setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
-
Methods inherited from class org.thymeleaf.templateresolver.AbstractConfigurableTemplateResolver
addTemplateAlias, clearTemplateAliases, computeResourceName, computeResourceName, computeTemplateMode, computeTemplateResource, computeValidity, getCacheablePatterns, getCacheablePatternSpec, getCacheTTLMs, getCharacterEncoding, getCSSTemplateModePatterns, getCSSTemplateModePatternSpec, getForceSuffix, getForceTemplateMode, getHtml5TemplateModePatterns, getHtml5TemplateModePatternSpec, getHtmlTemplateModePatterns, getHtmlTemplateModePatternSpec, getJavaScriptTemplateModePatterns, getJavaScriptTemplateModePatternSpec, getLegacyHtml5TemplateModePatterns, getLegacyHtml5TemplateModePatternSpec, getNonCacheablePatterns, getNonCacheablePatternSpec, getPrefix, getRawTemplateModePatterns, getRawTemplateModePatternSpec, getSuffix, getTemplateAliases, getTemplateMode, getTextTemplateModePatterns, getTextTemplateModePatternSpec, getValidXhtmlTemplateModePatterns, getValidXhtmlTemplateModePatternSpec, getValidXmlTemplateModePatterns, getValidXmlTemplateModePatternSpec, getXhtmlTemplateModePatterns, getXhtmlTemplateModePatternSpec, getXmlTemplateModePatterns, getXmlTemplateModePatternSpec, isCacheable, setCacheable, setCacheablePatterns, setCacheTTLMs, setCharacterEncoding, setCSSTemplateModePatterns, setForceSuffix, setForceTemplateMode, setHtml5TemplateModePatterns, setHtmlTemplateModePatterns, setJavaScriptTemplateModePatterns, setLegacyHtml5TemplateModePatterns, setNonCacheablePatterns, setPrefix, setRawTemplateModePatterns, setSuffix, setTemplateAliases, setTemplateMode, setTemplateMode, setTextTemplateModePatterns, setValidXhtmlTemplateModePatterns, setValidXmlTemplateModePatterns, setXhtmlTemplateModePatterns, setXmlTemplateModePatterns
-
Methods inherited from class org.thymeleaf.templateresolver.AbstractTemplateResolver
computeResolvable, getCheckExistence, getName, getOrder, getResolvablePatterns, getResolvablePatternSpec, getUseDecoupledLogic, resolveTemplate, setCheckExistence, setName, setOrder, setResolvablePatterns, setUseDecoupledLogic
-
-
-
-
Method Detail
-
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException
- Specified by:
setApplicationContext
in interfaceorg.springframework.context.ApplicationContextAware
- Throws:
org.springframework.beans.BeansException
-
computeTemplateResource
protected org.thymeleaf.templateresource.ITemplateResource computeTemplateResource(org.thymeleaf.IEngineConfiguration configuration, String ownerTemplate, String template, String resourceName, String characterEncoding, Map<String,Object> templateResolutionAttributes)
- Specified by:
computeTemplateResource
in classorg.thymeleaf.templateresolver.AbstractConfigurableTemplateResolver
-
-