You're reading the documentation for Wicket Stuff 11.x, the current feature line. The 10.x long-term support documentation is the default.
Runtime
OSGi
The OSGi Integration Project lets you use Wicket in OSGi environments. It provides some glue code to let your Wicket components and applications interact with the OSGi service registry.
Maven
<dependency>
<groupId>org.wicketstuff</groupId>
<artifactId>wicketstuff-osgi</artifactId>
</dependency>
Import org.wicketstuff:wicketstuff-bom in your dependencyManagement section to manage the version.
Summary
The wicketstuff-osgi bundle provides the following entry points:
-
OsgiWebApplicationFactorysupports bootstrapping aWebApplicationfrom the OSGi service registry, matching a property value specified as aWicketFilterinit parameter inweb.xml. -
OsgiClassResolversupports Wicket page deserialization. -
OsgiComponentInjectorlets you inject OSGi services into Wicket components by annotating fields with JSR-330@Inject.
Sample code
wicket-osgi-test-web and wicket-osgi-test-service are two simple test bundles for testing the glue code in an OSGi web container (Pax Web). The sample uses Aries Blueprint to interact with the service registry, but of course you can also use Declarative Services or a BundleActivator to publish your services.
Running the OSGi sample webapp
cd wicket-osgi-parent/wicket-osgi-test-web
mvn install pax:run
Then open http://localhost:8080/library in your browser.
Using wicketstuff-osgi
To use wicketstuff-osgi in your own projects, have a look at web.xml and LibraryApplication.java in wicket-osgi-test-web, and at the Javadoc in wicket-osgi.
Author
Source: wicket-osgi-parent