Who downloads javax.swing. * Classes in Equinox osgi container?

I read some equinox code and a document. I realized that currently only loading classes for java. * The package is delegated to the parent class loader (given that I have not changed the org.osgi.bootdelegation property, which, by the way, seems to be null). Then who downloads the javax.swing classes. *. I have not mentioned this anywhere in the imported packages / required packages, but it loads just fine anyway. I wanted to know who the hell is “formally” responsible for downloading it? Thank you very much in advance.

+1
eclipse swing classloader osgi equinox
source share
1 answer

From this thread :

equinox knows about the specified packages from the JRE for a given JSE level. These spec'ed packages are automatically exported by the Equinox system.bundle system depending on the level of the runtime environment you are on (for example, J2SE-1.3, J2SE-1.4, etc.).

So, while you define " org.osgi.framework.executionenvironment ", the equinox should load the correct JVM packages and export them for consumption by packages.

+1
source share

All Articles