-
Notifications
You must be signed in to change notification settings - Fork 271
OSGi
Wiki ▸ Documentation ▸ OSGi
Creating highly modular and dynamic applications on the JVM is made possible by OSGi - a dynamic module system for Java. Feel free to skip this chapter for now if you're not interested in OSGi technology.
To run TornadoFX in an OSGi container, you need to load the following bundles. Usually this is a matter of dumping these jars into the bundle
directory. Note that any jar that is to be used in an OSGi container needs to be "OSGi enabled". This means adding some OSGi specific entries the META-INF/MANIFEST.MF
file. Alle the resources below are OSGi enabled, including the TornadoFX
jar.
Artifact | Version | Binary |
---|---|---|
JavaFX 8 OSGi Support | 8.0 | jar |
TornadoFX | 1.5.3 | jar |
Kotlin OSGI Bundle* | 1.0.3 | jar |
Configuration Admin** | 1.8.10 | jar |
Commons Logging | 1.2 | jar |
Apache HTTP-Client | 4.5.2 | jar |
Apache HTTP-Core | 4.4.5 | jar |
JSON | 1.0.4 | jar |
*
The Kotlin OSGi bundle contains special versions of kotlin-stdlib
and kotlin-reflect
with the required OSGi manifest information.
**
This links to the Apache Felix implementation of the OSGi Config Admin interface. Feel free to use the implementation from your OSGi container instead.
Next: i18n