public class PageTemplateLocator extends Object implements ComponentTemplateLocator
Constructor and Description |
---|
PageTemplateLocator(Resource contextRoot,
ComponentClassResolver resolver,
String applicationFolder) |
Modifier and Type | Method and Description |
---|---|
Resource |
locateTemplate(ComponentModel model,
Locale locale)
Locates the template for the given model as a
Resource . |
public PageTemplateLocator(Resource contextRoot, ComponentClassResolver resolver, String applicationFolder)
public Resource locateTemplate(ComponentModel model, Locale locale)
ComponentTemplateLocator
Resource
.locateTemplate
in interface ComponentTemplateLocator
model
- defines the component, especially its base resourcelocale
- to which the${project.version} - Copyright © 2003-2015 The Apache Software Foundation.