public class ClassLoaderTemplateResolver extends TemplateResolver
Implementation of ITemplateResolver
that extends TemplateResolver
and uses a ClassLoaderResourceResolver
for resource resolution.
DEFAULT_CACHE_TTL_MS, DEFAULT_CACHEABLE, DEFAULT_TEMPLATE_MODE
Constructor and Description |
---|
ClassLoaderTemplateResolver() |
Modifier and Type | Method and Description |
---|---|
void |
setResourceResolver(IResourceResolver resourceResolver)
This method should not be called, because the resource resolver is
fixed to be
ClassLoaderResourceResolver . |
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 setResourceResolver(IResourceResolver resourceResolver)
This method should not be called, because the resource resolver is
fixed to be ClassLoaderResourceResolver
. 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 TemplateResolver
resourceResolver
- the new resource resolverCopyright © 2016 The THYMELEAF team. All rights reserved.