com.primix.tapestry.pageload
Class PageLoader
java.lang.Object
|
+--com.primix.tapestry.pageload.PageLoader
- All Implemented Interfaces:
- IPageLoader
- public class PageLoader
- extends java.lang.Object
- implements IPageLoader
Runs the process of building the component hierarchy for an entire page.
- Version:
- $Id: PageLoader.java,v 1.25 2001/09/12 20:45:12 hship Exp $
- Author:
- Howard Ship
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PageLoader
public PageLoader(IPageSource pageSource)
- Constructor.
loadPage
public IPage loadPage(java.lang.String name,
IEngine engine,
java.lang.String type)
throws PageLoaderException
- Invoked by the
PageSource
to load a specific page. This
method is not reentrant ... the PageSource ensures that
any given instance of PageLoader is loading only a single page at a time.
- Parameters:
name
- the name of the page to loadengine
- the engine the page is loaded for (this is used
to define the locale of the new page, and provide access
to the corect specification source, etc.).type
- the page type (the path to its component specification)
getEngine
public IEngine getEngine()
- Description copied from interface:
IPageLoader
- Returns the engine for which this page loader is curently
constructing a page.
- Specified by:
getEngine
in interface IPageLoader
getTemplateSource
public ITemplateSource getTemplateSource()
- Description copied from interface:
IPageLoader
- A convienience; returns the template source provided by
the
engine
.
- Specified by:
getTemplateSource
in interface IPageLoader