public class SpringResourceTemplateResolver
extends org.thymeleaf.templateresolver.TemplateResolver
implements org.springframework.context.ApplicationContextAware, org.springframework.beans.factory.InitializingBean
Implementation of ITemplateResolver
that extends TemplateResolver
and uses a SpringResourceResourceResolver
for resource resolution.
Constructor and Description |
---|
SpringResourceTemplateResolver() |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext) |
void |
setResourceResolver(org.thymeleaf.resourceresolver.IResourceResolver resourceResolver)
This method should not be called, because the resource resolver is
fixed to be
SpringResourceResourceResolver . |
addTemplateAlias, clearTemplateAliases, computeCharacterEncoding, computeResourceName, computeResourceResolver, computeTemplateMode, computeValidity, getCacheablePatterns, getCacheablePatternSpec, getCacheTTLMs, getCharacterEncoding, getHtml5TemplateModePatterns, getHtml5TemplateModePatternSpec, getLegacyHtml5TemplateModePatterns, getLegacyHtml5TemplateModePatternSpec, getNonCacheablePatterns, getNonCacheablePatternSpec, getPrefix, getResourceResolver, getSuffix, getTemplateAliases, getTemplateMode, getValidXhtmlTemplateModePatterns, getValidXhtmlTemplateModePatternSpec, getValidXmlTemplateModePatterns, getValidXmlTemplateModePatternSpec, getXhtmlTemplateModePatterns, getXhtmlTemplateModePatternSpec, getXmlTemplateModePatterns, getXmlTemplateModePatternSpec, initializeSpecific, initializeSpecificAdditional, isCacheable, setCacheable, setCacheablePatterns, setCacheTTLMs, setCharacterEncoding, setHtml5TemplateModePatterns, setLegacyHtml5TemplateModePatterns, setNonCacheablePatterns, setPrefix, setSuffix, setTemplateAliases, setTemplateMode, setValidXhtmlTemplateModePatterns, setValidXmlTemplateModePatterns, setXhtmlTemplateModePatterns, setXmlTemplateModePatterns, unsafeGetCacheTTLMs, unsafeGetCharacterEncoding, unsafeGetPrefix, unsafeGetResourceResolver, unsafeGetSuffix, unsafeGetTemplateMode, unsafeIsCacheable
checkInitialized, checkNotInitialized, computeResolvable, getName, getOrder, getResolvablePatterns, getResolvablePatternSpec, initialize, isInitialized, resolveTemplate, setName, setOrder, setResolvablePatterns, unsafeGetName, unsafeGetOrder
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException
setApplicationContext
in interface org.springframework.context.ApplicationContextAware
org.springframework.beans.BeansException
public void afterPropertiesSet() throws Exception
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
Exception
public void setResourceResolver(org.thymeleaf.resourceresolver.IResourceResolver resourceResolver)
This method should not be called, because the resource resolver is
fixed to be SpringResourceResourceResolver
. Every execution of this method
will result in an exception.
If you need to select a different resource resolver, use the TemplateResolver
class instead.
setResourceResolver
in class org.thymeleaf.templateresolver.TemplateResolver
resourceResolver
- the new resource resolverCopyright © 2016 The THYMELEAF team. All rights reserved.