Interface PluginTemplateResolver
- All Superinterfaces:
org.thymeleaf.templateresolver.ITemplateResolver
public interface PluginTemplateResolver
extends org.thymeleaf.templateresolver.ITemplateResolver
Plugin request aware version of
ITemplateResolver
Have additional method that accept Plugin
in which context request is executed.-
Method Summary
Modifier and TypeMethodDescriptiondefault boolean
isApplicableFor
(Plugin plugin) default org.thymeleaf.templateresolver.TemplateResolution
resolveTemplate
(org.thymeleaf.IEngineConfiguration configuration, String ownerTemplate, String template, Map<String, Object> templateResolutionAttributes, Plugin plugin) Tries to resolve a template.Methods inherited from interface org.thymeleaf.templateresolver.ITemplateResolver
getName, getOrder, resolveTemplate
-
Method Details
-
isApplicableFor
-
resolveTemplate
default org.thymeleaf.templateresolver.TemplateResolution resolveTemplate(org.thymeleaf.IEngineConfiguration configuration, String ownerTemplate, String template, Map<String, Object> templateResolutionAttributes, Plugin plugin) Tries to resolve a template. See
ITemplateResolver.resolveTemplate(IEngineConfiguration, String, String, Map)
for more info.- Parameters:
configuration
- the engine configuration.ownerTemplate
- the containing template from which we want to resolve a new one as a fragment. Can be null.template
- the template to be resolved (usually its name).templateResolutionAttributes
- the template resolution attributes to be used (usually coming from aTemplateSpec
instance. Can be null.plugin
- plugin in which context request is executed- Returns:
- a TemplateResolution object (which might represent an existing resource or not), or null if the template could not be resolved.
-