things.thinger.service.httptool.stock
Class PageManager_Stock

java.lang.Object
  extended by things.thinger.service.httptool.PageManager
      extended by things.thinger.service.httptool.stock.PageManager_Stock

public class PageManager_Stock
extends PageManager

This is a stock implementation of the page manager.

All pages load from pages/ under the system universe.

Version:
1.0

Version History

EPG - Initial - 18 NOV 07
 
Author:
Erich P. Gatejen

Field Summary
 
Fields inherited from class things.thinger.service.httptool.PageManager
si
 
Constructor Summary
PageManager_Stock()
           
 
Method Summary
 java.lang.String getErrorPageName()
          Get the error page name.
 void init_chain()
          The initialization chain.
 Page load(java.lang.String pageName)
          Load a page by name.
 
Methods inherited from class things.thinger.service.httptool.PageManager
get, init
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PageManager_Stock

public PageManager_Stock()
Method Detail

getErrorPageName

public java.lang.String getErrorPageName()
Get the error page name.

Specified by:
getErrorPageName in class PageManager
Returns:
the name of the error page.

load

public Page load(java.lang.String pageName)
          throws java.lang.Throwable
Load a page by name. This will not come from the cache. Use get() if you want the cache. If it could not be found, it will return null. Most user applications should use get() instead.

Specified by:
load in class PageManager
Parameters:
pageName - the name of the action.
Returns:
the page or null if it could not be found.
Throws:
java.lang.Throwable - for any problem (except if it couldn't be found). This is usually fatal.

init_chain

public void init_chain()
                throws ThingsException
The initialization chain. This will be called when the system inits the manager. It gives the base class a chance to init. The si (SystemInterface) will be set and usable. The system may call this more than once. If it does, the state should be reset and the initialization done again.

Specified by:
init_chain in class PageManager
Throws:
ThingsException - for any problem.


Things.