nz.ac.waikato.mcennis.rat.graph.page
Class PageFactory

java.lang.Object
  extended by nz.ac.waikato.mcennis.rat.graph.page.PageFactory

public class PageFactory
extends java.lang.Object

Class for generating Page objects


Constructor Summary
protected PageFactory()
          Creates a new instance of PageFactory
 
Method Summary
 Page create(java.util.Properties props)
          Creates a new Page object.
static PageFactory newInstance()
          Create a reference ot a static PageFactory object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PageFactory

protected PageFactory()
Creates a new instance of PageFactory

Method Detail

newInstance

public static PageFactory newInstance()
Create a reference ot a static PageFactory object

Returns:
reference to singelton factory.

create

public Page create(java.util.Properties props)
Creates a new Page object. Only BasicPage is supported. 'PageID' sets the id of the page.

Parameters:
props - property map used to create and initialize this object
Returns:
newly created page object