org.apache.tapestry5.internal.services
Interface PageTemplateLocator

All Known Implementing Classes:
PageTemplateLocatorImpl

public interface PageTemplateLocator

Responsible for locating page templates in the web application context.


Method Summary
 Resource findPageTemplateResource(ComponentModel model, Locale locale)
          Given model, determines if the model is for a page (rather than a component) and if so, sees if there is a localized template for the page in the web application context.
 

Method Detail

findPageTemplateResource

Resource findPageTemplateResource(ComponentModel model,
                                  Locale locale)
Given model, determines if the model is for a page (rather than a component) and if so, sees if there is a localized template for the page in the web application context.

Parameters:
model - the component model defining the page to search for
locale - the desired localization of the template
Returns:
the template resource, or null if not found or the model is not a page


Copyright © 2006-2009 Apache Software Foundation. All Rights Reserved.