Any way to programmatically change OSGi Framework's configuration [message #898492] |
Thu, 26 July 2012 09:30  |
Eclipse User |
|
|
|
Hi,
We are working on an JVM instrumentation tool[1] and would like to have an Eclipse based client. The problem is that we need certain packages which come from the JVM itself exported in an OSGi sense so that an Eclipse plug-in client would be able to consume packages exported by core thermostat bundles.
The way we are solving this now is to use the org.osgi.framework.system.packages.extra property in order to tell Equinox about which packages to export. However, I would assume there's a bit of an chicken and egg problem involved if we wanted to do this from code (i.e. not requiring eclipse.ini changes). By the time our Eclipse bundle starts, the framework will have started and I don't seem to figure out how to change it's config after it's birth, just before our plug-in is attempted to be resolved.
Is there a way to programmatically change Equinox'es framework config? Thanks for any pointers! We'd like to do something like this (lines 110-123): http://icedtea.classpath.org/hg/thermostat/file/e645fdf087e1/launcher/src/main/java/com/redhat/thermostat/launcher/Thermostat.java
I'm happy to provide more details if I'm unclear.
Thanks!
--Severin
[1] http://icedtea.classpath.org/thermostat/
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.07043 seconds