org.apache.tapestry5.internal.services
Interface PageLoader
- All Known Implementing Classes:
- PageLoaderImpl
public interface PageLoader
Instantiates a fully loaded, configured instance of a Tapestry page. This is a recursive process, since part of
loading a page is to load the page elements for the page, many of which are components. Further, in some cases, the
full component tree is not identified until after each component's template is loaded. Because this is an expensive
process, loaded pages will be used for many requests (on behalf of many different users) and will be pooled between
requests.
- See Also:
PagePool,
RequestPageCache
loadPage
Page loadPage(String logicalPageName,
Locale locale)
- Loads the page in the given locale.
- Parameters:
logicalPageName - the canonicalized logical name of the page, which will be made available via
Page.getLogicalName() and ComponentResourcesCommon.getPageName() (for any
component within the page).locale - the locale to load the page and its components , which will be made available via Page.getLocale() and ComponentResourcesCommon.getLocale() (for any component
within the page)- See Also:
Page.getLocale()
Copyright © 2006-2009 Apache Software Foundation. All Rights Reserved.