org.niggle.templates.webmacroimpl
Class WebMacroPageFactory

java.lang.Object
  |
  +--org.niggle.templates.webmacroimpl.WebMacroPageFactory
All Implemented Interfaces:
PageFactory

public class WebMacroPageFactory
extends java.lang.Object
implements PageFactory

A concrete PageFactory type that vends Page objects that wrap WebMacro template objects

Author:
Jonathan Revusky

Field Summary
protected  java.lang.ClassLoader classLoader
           
 
Constructor Summary
WebMacroPageFactory()
           
 
Method Summary
 Page getPage(java.lang.String name, java.util.Locale locale)
          Returns a Page.
 void setConfig(NiggleConfig config)
          pass a copy of the NiggleConfig object for setup info.
 void setDefaultPath(java.lang.String path)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

classLoader

protected java.lang.ClassLoader classLoader
Constructor Detail

WebMacroPageFactory

public WebMacroPageFactory()
Method Detail

getPage

public Page getPage(java.lang.String name,
                    java.util.Locale locale)
             throws java.io.IOException
Description copied from interface: PageFactory
Returns a Page.

Specified by:
getPage in interface PageFactory
Parameters:
name - a string that somehow identifies the page. May or may not be related to a file system name.
locale - the place for which the page is intended.
Returns:
a Page
Throws:
java.io.IOException - thrown if a necessary underlying resource is unavailable.

setConfig

public void setConfig(NiggleConfig config)
               throws javax.servlet.ServletException
Description copied from interface: PageFactory
pass a copy of the NiggleConfig object for setup info.

Specified by:
setConfig in interface PageFactory
javax.servlet.ServletException

setDefaultPath

public void setDefaultPath(java.lang.String path)
Specified by:
setDefaultPath in interface PageFactory