org.apache.tapestry5.internal.services
Class PageTemplateLocatorImpl

java.lang.Object
  extended by org.apache.tapestry5.internal.services.PageTemplateLocatorImpl
All Implemented Interfaces:
PageTemplateLocator

public class PageTemplateLocatorImpl
extends Object
implements PageTemplateLocator


Constructor Summary
PageTemplateLocatorImpl(Resource contextRoot, ComponentClassResolver resolver)
           
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PageTemplateLocatorImpl

public PageTemplateLocatorImpl(Resource contextRoot,
                               ComponentClassResolver resolver)
Method Detail

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 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.