TemplateResolverMarkupTemplateEngine.CachingTemplateResolverpublic static class MarkupTemplateEngine.DefaultTemplateResolver extends java.lang.Object implements TemplateResolver
| Constructor | Description |
|---|---|
DefaultTemplateResolver() |
| Modifier and Type | Method | Description |
|---|---|---|
void |
configure(java.lang.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.
|
java.net.URL |
resolveTemplate(java.lang.String templatePath) |
Resolvers must implement this method in order to resolve a template, given a template path.
|
public void configure(java.lang.ClassLoader templateClassLoader,
TemplateConfiguration configuration)
TemplateResolverconfigure in interface TemplateResolvertemplateClassLoader - the classloader where templates will be searched forconfiguration - the configuration of the template enginepublic java.net.URL resolveTemplate(java.lang.String templatePath)
throws java.io.IOException
TemplateResolverresolveTemplate in interface TemplateResolvertemplatePath - path to the templatejava.io.IOException