com.primix.tapestry
Interface IPageSource

All Known Implementing Classes:
PageSource

public interface IPageSource

Abstracts the process of loading pages from thier specifications as well as pooling of pages once loaded.

If the required page is not available, a page source may use an instance of IPageLoader to actually load the page (and all of its nested components).

Version:
$Id: IPageSource.java,v 1.9 2001/07/05 22:28:43 hship Exp $
Author:
Howard Ship

Method Summary
 IAsset getContextAsset(java.lang.String assetPath)
          Gets a cached asset.
 IAsset getExternalAsset(java.lang.String URL)
          Gets a cached asset.
 IBinding getFieldBinding(java.lang.String fieldName)
          Gets a field binding for the named field (the name includes the class name and the field).
 IPage getPage(IEngine engine, java.lang.String pageName, IMonitor monitor)
          Gets a given page for the engine.
 IAsset getPrivateAsset(java.lang.String resourcePath)
          Gets a cached asset.
 IBinding getStaticBinding(java.lang.String value)
          Like getFieldBinding(String), except for static bindings.
 void releasePage(IPage page)
          Invoked after the engine is done with the page (typically, after the response to the client has been sent).
 void reset()
          Invoked to have the source clear any internal cache.
 

Method Detail

getPage

public IPage getPage(IEngine engine,
                     java.lang.String pageName,
                     IMonitor monitor)
              throws PageLoaderException
Gets a given page for the engine. This may involve using a previously loaded page from a pool of available pages, or the page may be loaded as needed.

releasePage

public void releasePage(IPage page)
Invoked after the engine is done with the page (typically, after the response to the client has been sent). The page is returned to the pool for later reuse.

reset

public void reset()
Invoked to have the source clear any internal cache. This is most often used when debugging an application.

getFieldBinding

public IBinding getFieldBinding(java.lang.String fieldName)
Gets a field binding for the named field (the name includes the class name and the field). If no such binding exists, then one is created, otherwise the existing binding is returned.
Since:
1.0.2

getStaticBinding

public IBinding getStaticBinding(java.lang.String value)
Like getFieldBinding(String), except for static bindings.
Since:
1.0.2

getExternalAsset

public IAsset getExternalAsset(java.lang.String URL)
Gets a cached asset.
Since:
1.0.2

getContextAsset

public IAsset getContextAsset(java.lang.String assetPath)
Gets a cached asset.
Since:
1.0.2

getPrivateAsset

public IAsset getPrivateAsset(java.lang.String resourcePath)
Gets a cached asset.
Since:
1.0.2