public static class MarkupTemplateEngine.DefaultTemplateResolver
extends Object
implements TemplateResolver
Default resolver that loads templates from the configured template class loader and applies locale fallback rules.
| Constructor and description |
|---|
DefaultTemplateResolver()Creates a resolver that loads templates from the configured template class loader. |
| Type Params | Return Type | Name and description |
|---|---|---|
|
public void |
configure(ClassLoader templateClassLoader, TemplateConfiguration configuration)This method is called once the template engine is initialized, providing the resolver with the template engine configuration and its template class loader.
|
|
public URL |
resolveTemplate(String templatePath)Resolvers must implement this method in order to resolve a template, given a template path. They must return a valid URL or an IOException.
|
Creates a resolver that loads templates from the configured template class loader.
This method is called once the template engine is initialized, providing the resolver with the template engine configuration and its template class loader.
templateClassLoader - the classloader where templates will be searched forconfiguration - the configuration of the template engineResolvers must implement this method in order to resolve a template, given a template path. They must return a valid URL or an IOException.
templatePath - path to the templateCopyright © 2003-2026 The Apache Software Foundation. All rights reserved.