|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ops4j.pax.wicket.util.AbstractPageFactory<T>
public abstract class AbstractPageFactory<T extends org.apache.wicket.Page>
Constructor Summary | |
---|---|
protected |
AbstractPageFactory(org.osgi.framework.BundleContext bundleContext,
String pageId,
String applicationName,
String pageName)
While this constructor does not require a pageClass it will NOT analyse the loaded classes automatically for the PaxWicketMountPoint annotation. |
protected |
AbstractPageFactory(org.osgi.framework.BundleContext bundleContext,
String pageId,
String applicationName,
String pageName,
Class<? extends org.apache.wicket.markup.html.WebPage> pageClass)
This constructor expects an pageClass . |
Method Summary | |
---|---|
void |
dispose()
|
String |
getApplicationName()
Returns the application name. |
String |
getPageName()
Returns the page name. |
void |
register()
|
protected void |
setApplicationName(String applicationName)
Sets the application name. |
protected void |
setInternalBundleContext(org.osgi.framework.BundleContext bundleContext)
|
protected void |
setPageId(String pageId)
|
protected void |
setPageName(String pageName)
Set the page name. |
void |
updated(Dictionary config)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.ops4j.pax.wicket.api.PageFactory |
---|
createPage, getPageClass |
Constructor Detail |
---|
protected AbstractPageFactory(org.osgi.framework.BundleContext bundleContext, String pageId, String applicationName, String pageName) throws IllegalArgumentException
PaxWicketMountPoint
annotation.
IllegalArgumentException
protected AbstractPageFactory(org.osgi.framework.BundleContext bundleContext, String pageId, String applicationName, String pageName, Class<? extends org.apache.wicket.markup.html.WebPage> pageClass) throws IllegalArgumentException
pageClass
. This class is expected to be the exported page and is
automatically scanned for the PaxWicketMountPoint
annotation. The found page is automatically exported as
service mounting the page on the defined place.
IllegalArgumentException
Method Detail |
---|
public final void register() throws IllegalStateException
IllegalStateException
public final void dispose() throws IllegalStateException
IllegalStateException
public final String getApplicationName()
public final String getPageName()
public void updated(Dictionary config) throws org.osgi.service.cm.ConfigurationException
updated
in interface org.osgi.service.cm.ManagedService
org.osgi.service.cm.ConfigurationException
protected final void setApplicationName(String applicationName) throws IllegalArgumentException
applicationName
- The application name. This argument must not be null
or empty.
IllegalArgumentException
- Thrown if the specified applicationName
is null
.protected final void setPageId(String pageId) throws IllegalArgumentException
IllegalArgumentException
protected final void setPageName(String pageName) throws IllegalArgumentException
pageName
- The page name. This argument must not be null
or empty.
IllegalArgumentException
- Thrown if the specified pageName
arguments are null
.protected final void setInternalBundleContext(org.osgi.framework.BundleContext bundleContext) throws IllegalArgumentException
IllegalArgumentException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |