I read some equinox code and doc. I came to understand that, at present, only class loading for java.* packages are delegated to the parent classloader(given that i have not modified org.osgi.bootdelegation property, which by the way seems to be null). Then who is loading the javax.swing.* classes. I have not mentioned it anywhere in the imported packages/ required bundles, but still it loads just fine. I wanted to know who the heck is "formally" responsible for loading it? Thanks a lot in advance.
+1
A:
From this thread:
equinox knows about spec'ed packages from the JRE for a given JSE level. These spec'ed packages are automatically exported by the Equinox system.bundle depending on the execution environment level you are at (e.g. J2SE-1.3, J2SE-1.4 etc.)
So as long as you define a "org.osgi.framework.executionenvironment
", equinox should load the right JVM packages and export them for consumption by the bundles.
VonC
2009-09-22 07:25:06
Thanks a lot. That was exactly I needed.;)
Suraj Chandran
2009-09-22 12:02:27
I had still one doubt though. J2SE-1.3, J2SE-1.4...etc are these the .profile files found insider the org.eclipse.osgi bundle. If so can I add my own profile, that would export say for e.g. com.abc.*. if it is possible will it cause any license issues, if I do so.Thanks again
Suraj Chandran
2009-09-22 15:34:59
I am not sure about that licensing issue regarding the export of a profile. I will check that out.
VonC
2009-09-22 15:55:53