org.ops4j.pax.wicket.internal
Class PaxWicketPageFactory
java.lang.Object
org.ops4j.pax.wicket.internal.PaxWicketPageFactory
- All Implemented Interfaces:
- org.apache.wicket.IPageFactory
public final class PaxWicketPageFactory
- extends java.lang.Object
- implements org.apache.wicket.IPageFactory
|
Constructor Summary |
PaxWicketPageFactory(org.osgi.framework.BundleContext aBundleContext,
java.lang.String anApplicationName)
|
|
Method Summary |
void |
add(java.lang.Class pageClass,
PageFactory pageSource)
|
void |
dispose()
|
void |
initialize()
|
org.apache.wicket.Page |
newPage(java.lang.Class pageClass)
Creates a new page using a page class. |
org.apache.wicket.Page |
newPage(java.lang.Class pageClass,
org.apache.wicket.PageParameters parameters)
Creates a new Page, passing PageParameters to the Page constructor if such a constructor exists. |
void |
remove(java.lang.Class pageClass)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PaxWicketPageFactory
public PaxWicketPageFactory(org.osgi.framework.BundleContext aBundleContext,
java.lang.String anApplicationName)
initialize
public final void initialize()
dispose
public final void dispose()
newPage
public final org.apache.wicket.Page newPage(java.lang.Class pageClass)
throws java.lang.IllegalArgumentException
- Creates a new page using a page class.
- Specified by:
newPage in interface org.apache.wicket.IPageFactory
- Parameters:
pageClass - The page class to instantiate
- Returns:
- The page
- Throws:
org.apache.wicket.WicketRuntimeException - Thrown if the page cannot be constructed
java.lang.IllegalArgumentException
newPage
public final org.apache.wicket.Page newPage(java.lang.Class pageClass,
org.apache.wicket.PageParameters parameters)
throws java.lang.IllegalArgumentException
- 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 org.apache.wicket.IPageFactory
- Parameters:
pageClass - The class of Page to createparameters - Any parameters to pass to the Page's constructor
- Returns:
- The new page
- Throws:
org.apache.wicket.WicketRuntimeException - Thrown if the page cannot be constructed
java.lang.IllegalArgumentException
add
public void add(java.lang.Class pageClass,
PageFactory pageSource)
throws java.lang.IllegalArgumentException
- Throws:
java.lang.IllegalArgumentException
remove
public final void remove(java.lang.Class pageClass)
throws java.lang.IllegalArgumentException
- Throws:
java.lang.IllegalArgumentException
Copyright © 2008. All Rights Reserved.