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

Constructor Summary
PageLoader(IPageSource pageSource)
          Constructor.
 
Method Summary
 IEngine getEngine()
          Returns the engine for which this page loader is curently constructing a page.
 ITemplateSource getTemplateSource()
          A convienience; returns the template source provided by the engine.
 IPage loadPage(java.lang.String name, IEngine engine, java.lang.String type)
          Invoked by the PageSource to load a specific page.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PageLoader

public PageLoader(IPageSource pageSource)
Constructor.
Method Detail

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 load
engine - 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