org.ops4j.pax.wicket.util
Class DefaultPageMounter

java.lang.Object
  extended by org.ops4j.pax.wicket.util.DefaultPageMounter
All Implemented Interfaces:
PageMounter, org.osgi.service.cm.ManagedService

public class DefaultPageMounter
extends Object
implements PageMounter, org.osgi.service.cm.ManagedService


Constructor Summary
DefaultPageMounter(String applicationName, org.osgi.framework.BundleContext bundleContext)
           
 
Method Summary
 void addMountPoint(String path, Class<? extends org.apache.wicket.Page> pageClass)
          A convenience method that uses a default coding strategy.
 void dispose()
          Automatically unregister the PageMounter from the OSGi registry
 String getApplicationName()
           
 List<MountPointInfo> getMountPoints()
           
 void register()
          Automatically regsiteres the PageMounter as OSGi service
 void setApplicationName(String applicationName)
           
 void updated(Dictionary properties)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultPageMounter

public DefaultPageMounter(String applicationName,
                          org.osgi.framework.BundleContext bundleContext)
Method Detail

register

public void register()
Automatically regsiteres the PageMounter as OSGi service


dispose

public void dispose()
Automatically unregister the PageMounter from the OSGi registry


updated

public void updated(Dictionary properties)
             throws org.osgi.service.cm.ConfigurationException
Specified by:
updated in interface org.osgi.service.cm.ManagedService
Throws:
org.osgi.service.cm.ConfigurationException

setApplicationName

public void setApplicationName(String applicationName)

getApplicationName

public String getApplicationName()

addMountPoint

public void addMountPoint(String path,
                          Class<? extends org.apache.wicket.Page> pageClass)
A convenience method that uses a default coding strategy.

Specified by:
addMountPoint in interface PageMounter
Parameters:
path - the path on which the page is to be mounted
pageClass - the class to mount on this mount point using the default strategy

getMountPoints

public final List<MountPointInfo> getMountPoints()
Specified by:
getMountPoints in interface PageMounter


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