org.apache.wicket.session
Class DefaultPageFactory

java.lang.Object
  extended by org.apache.wicket.session.DefaultPageFactory
All Implemented Interfaces:
IPageFactory

public final class DefaultPageFactory
extends java.lang.Object
implements IPageFactory

A factory that constructs Pages.

Author:
Juergen Donnerstag, Jonathan Locke
See Also:
ISessionSettings.setPageFactory(IPageFactory), IPageFactory

Constructor Summary
DefaultPageFactory()
           
 
Method Summary
 Page newPage(java.lang.Class pageClass)
          Creates a new page using a page class.
 Page newPage(java.lang.Class pageClass, PageParameters parameters)
          Creates a new Page, passing PageParameters to the Page constructor if such a constructor exists.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultPageFactory

public DefaultPageFactory()
Method Detail

newPage

public final Page newPage(java.lang.Class pageClass)
Description copied from interface: IPageFactory
Creates a new page using a page class.

Specified by:
newPage in interface IPageFactory
Parameters:
pageClass - The page class to instantiate
Returns:
The page
See Also:
IPageFactory.newPage(Class)

newPage

public final Page newPage(java.lang.Class pageClass,
                          PageParameters parameters)
Description copied from interface: IPageFactory
Creates a new Page, passing PageParameters to the Page constructor if such a constructor exists. If no such constructor exists and the parameters argument is null or empty, then any available default constructor will be used.

Specified by:
newPage in interface IPageFactory
Parameters:
pageClass - The class of Page to create
parameters - Any parameters to pass to the Page's constructor
Returns:
The new page
See Also:
IPageFactory.newPage(Class, PageParameters)


Copyright © 2004-2010 Apache Software Foundation. All Rights Reserved.