Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsAny way to programmatically change OSGi Framework's configuration
https://www.eclipse.org/forums/index.php/mv/msg/368549/898492/#msg_898492
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.
[1] http://icedtea.classpath.org/thermostat/]]>Severin Gehwolf2012-07-26T13:30:12-00:00Re: Any way to programmatically change OSGi Framework's configuration
https://www.eclipse.org/forums/index.php/mv/msg/368549/898547/#msg_898547
Bundle-ManifestVersion: 2
Bundle-SymbolicName: extra.stuff
Bundle-Version: 1.0
Fragment-Host: system.bundle
Export-Package: extra.stuff
Caution the link you provided is GPL code.
]]>Thomas Watson2012-07-26T14:52:47-00:00Re: Any way to programmatically change OSGi Framework's configuration
https://www.eclipse.org/forums/index.php/mv/msg/368549/898718/#msg_898718
Severin Gehwolf2012-07-27T10:39:40-00:00