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 Type
    Method
    Description
    default boolean
     
    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

      default boolean isApplicableFor(Plugin plugin)
    • 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 a TemplateSpec 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.