org.ops4j.pax.wicket.util
Class DefaultPageFactory<T extends org.apache.wicket.Page>

java.lang.Object
  extended by org.ops4j.pax.wicket.util.AbstractPageFactory<T>
      extended by org.ops4j.pax.wicket.util.DefaultPageFactory<T>
All Implemented Interfaces:
PageFactory<T>, org.osgi.service.cm.ManagedService

public class DefaultPageFactory<T extends org.apache.wicket.Page>
extends AbstractPageFactory<T>


Constructor Summary
DefaultPageFactory(org.osgi.framework.BundleContext bundleContext, String pageId, String applicationName, String pageName, Class<T> pageClass)
           
DefaultPageFactory(org.osgi.framework.BundleContext bundleContext, String pageId, String applicationName, String pageName, Class<T> pageClass, String niceUrlPath)
           
 
Method Summary
 T createPage(org.apache.wicket.request.mapper.parameter.PageParameters params)
          Creates a page with the specified params.
 Class<T> getPageClass()
          Returns the page class instance represented by this PageFactory.
 
Methods inherited from class org.ops4j.pax.wicket.util.AbstractPageFactory
dispose, getApplicationName, getPageName, register, setApplicationName, setInternalBundleContext, setPageId, setPageName, updated
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultPageFactory

public DefaultPageFactory(org.osgi.framework.BundleContext bundleContext,
                          String pageId,
                          String applicationName,
                          String pageName,
                          Class<T> pageClass)
                   throws IllegalArgumentException
Throws:
IllegalArgumentException

DefaultPageFactory

public DefaultPageFactory(org.osgi.framework.BundleContext bundleContext,
                          String pageId,
                          String applicationName,
                          String pageName,
                          Class<T> pageClass,
                          String niceUrlPath)
                   throws IllegalArgumentException
Throws:
IllegalArgumentException
Method Detail

getPageClass

public Class<T> getPageClass()
Description copied from interface: PageFactory
Returns the page class instance represented by this PageFactory.

Returns:
The page class represented by this PageFactory.

createPage

public T createPage(org.apache.wicket.request.mapper.parameter.PageParameters params)
Description copied from interface: PageFactory
Creates a page with the specified params.

Parameters:
params - The page parameters.
Returns:
An instance of page.


Copyright © 2006-2012 OPS4J - Open Participation Software for Java. All Rights Reserved.