org.apache.tapestry5.internal.services
Class PageTemplateLocatorImpl
java.lang.Object
org.apache.tapestry5.internal.services.PageTemplateLocatorImpl
- All Implemented Interfaces:
- PageTemplateLocator
public class PageTemplateLocatorImpl
- extends Object
- implements PageTemplateLocator
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PageTemplateLocatorImpl
public PageTemplateLocatorImpl(Resource contextRoot,
ComponentClassResolver resolver)
findPageTemplateResource
public Resource findPageTemplateResource(ComponentModel model,
Locale locale)
- Description copied from interface:
PageTemplateLocator
- 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.
- Specified by:
findPageTemplateResource in interface PageTemplateLocator
- Parameters:
model - the component model defining the page to search forlocale - 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.