public interface IDecoupledTemplateLogicResolver
Common interface for all resolver objects in charge of obtaining the resource that should contain the decoupled template logic for a template being processed.
The specific instance of this class that will be used can be configured at the
TemplateEngine
using its
TemplateEngine.setDecoupledTemplateLogicResolver(IDecoupledTemplateLogicResolver)
and
TemplateEngine.getDecoupledTemplateLogicResolver()
methods.
Implementations of this interface should be thread-safe.
StandardDecoupledTemplateLogicResolver
Modifier and Type | Method and Description |
---|---|
ITemplateResource |
resolveDecoupledTemplateLogic(IEngineConfiguration configuration,
String ownerTemplate,
String template,
Set<String> templateSelectors,
ITemplateResource resource,
TemplateMode templateMode)
Resolve an
ITemplateResource object containing the decoupled template logic to be applied to the
template being processed. |
ITemplateResource resolveDecoupledTemplateLogic(IEngineConfiguration configuration, String ownerTemplate, String template, Set<String> templateSelectors, ITemplateResource resource, TemplateMode templateMode)
Resolve an ITemplateResource
object containing the decoupled template logic to be applied to the
template being processed.
Normally, this decoupled template logic resource will be obtained from the original template's resource itself, but implementations can opt for different mechanisms.
configuration
- the configuration object being used.ownerTemplate
- the owner of the template for which this is being resolved, or null if it is a first-level template.template
- the template for which decoupled logic is being.templateSelectors
- the selectors to be used, defining the fragments that should be processed.resource
- the resource of the resolved template.templateMode
- the template mode to be applied to the resolved template.Copyright © 2016 The THYMELEAF team. All rights reserved.