Mount Points (Quick)

Skip to end of metadata
Go to start of metadata

Mountpoints are the translations for your page endpoints. This one is done in Wicket in various ways. 

Automounting

The most simple way to mount your page is a Pax-Wicket annotation. It's enough to add the following to your page:

That's it; no more magic and your page will show up where you configured it.

Manually mounting

In case you need some more complex strategies than a BookmarkablePage mount you'll need to do so manually. Therefore create a new class implementing the Pax-Wicket PageMounter interface...

... and implement the getMountPoints method:

Finally you need to register the mount point in the OSGi registry. This could be done via any method you like. The following example shows how it is done using blueprint:

Full sample

The full sample code can be retrieved here.

Labels:
None
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.

Clicky Web Analytics