Who loads javax.swing.* classes in Equinox osgi container?

六月ゝ 毕业季﹏ 提交于 2019-12-11 08:12:53

问题


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:


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.



来源:https://stackoverflow.com/questions/1458425/who-loads-javax-swing-classes-in-equinox-osgi-container

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!