org.niggle.templates.velocityimpl
Class VelocityPageFactory

java.lang.Object
  |
  +--org.niggle.templates.velocityimpl.VelocityPageFactory
All Implemented Interfaces:
PageFactory

Deprecated. Use FreeMarker instead.

public class VelocityPageFactory
extends java.lang.Object
implements PageFactory

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

Author:
Jonathan Revusky

Field Summary
protected  java.lang.ClassLoader classLoader
          Deprecated.  
 
Constructor Summary
VelocityPageFactory()
          Deprecated.  
 
Method Summary
protected  org.apache.velocity.context.Context getContext()
          Deprecated.  
 Page getPage(java.lang.String name, java.util.Locale locale)
          Deprecated. Returns a Page.
protected  org.apache.velocity.Template getTemplate(java.lang.String name, java.lang.String encoding)
          Deprecated.  
 void setConfig(NiggleConfig config)
          Deprecated. pass a copy of the NiggleConfig object for setup info.
 void setDefaultPath(java.lang.String path)
          Deprecated.  
 
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
Deprecated. 
Constructor Detail

VelocityPageFactory

public VelocityPageFactory()
Deprecated. 
Method Detail

getPage

public Page getPage(java.lang.String name,
                    java.util.Locale locale)
             throws java.io.IOException
Deprecated. 
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.

getTemplate

protected org.apache.velocity.Template getTemplate(java.lang.String name,
                                                   java.lang.String encoding)
Deprecated. 

getContext

protected org.apache.velocity.context.Context getContext()
Deprecated. 

setDefaultPath

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

setConfig

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

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