Saminda Abeyruwan wrote:
Hi Devs,
I've recently asked the question that, if I wanted to add some packages to
system bundle, it should be added to "org.osgi.framework.system.packages"
Felix properties file. One problem I faced recently is that, during system
bundle start my custom auto activator init number of classes, where all the
packages that needed by this initialization needed to be added to prior
property.
I am somewhat confused. I would assume that your custom activator is
being loaded from the application class loader (i.e., from the class
path), thus it should automatically have access to any classes you have
on the class path.
The classes you want to put on the system packages must be on the class
path, otherwise the system bundle wouldn't be able to export them by
delegating to parent.
-> richard
I would like to know is it possible to produce my own classloader "proxy" to
OSGi environment without going through "org.osgi.framework.system.packages".
i.e Is it possible to programmatically add my classloader to OSGi when
system bundle is initiating via Embed Felix.
Thank you
Saminda