public class TemplateContextProvider extends Object implements TemplateProvider
TemplateProvider implementation that returns a Template from
a TemplateContext. If the object in the context is a Part, a
Template will be wrapped around it.TEMPLATE_CONTEXT_PROVIDER| Constructor and Description |
|---|
TemplateContextProvider() |
| Modifier and Type | Method and Description |
|---|---|
Template |
getTemplate(TemplateContext templateContext,
String templateName)
Retrieves the template with the given name.
|
public Template getTemplate(TemplateContext templateContext, String templateName)
getTemplate in interface TemplateProvidertemplateContext - The template contexttemplateName - The name of the templatenull if there is no
template with the requested nameCopyright © 2026. All rights reserved.