org.niggle.templates
Interface PageFactory

All Known Implementing Classes:
FreemarkerPageFactory, VelocityPageFactory, WebMacroPageFactory

public interface PageFactory

An interface for an object that vends Page instances

Author:
Jonathan Revusky

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)
           
 

Method Detail

getPage

public Page getPage(java.lang.String name,
                    java.util.Locale locale)
             throws java.io.IOException
Returns a Page.

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
pass a copy of the NiggleConfig object for setup info.

javax.servlet.ServletException

setDefaultPath

public void setDefaultPath(java.lang.String path)
                    throws java.io.IOException
java.io.IOException