谁在Equinox osgi容器中加载javax.swing.*类? [英] Who loads javax.swing.* classes in Equinox osgi container?

查看:112
本文介绍了谁在Equinox osgi容器中加载javax.swing.*类?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我阅读了一些春分代码和文档.我了解到,目前,仅将java.*包的类加载委托给父类加载器(假设我没有修改org.osgi.bootdelegation属性,顺便说一下,该属性似乎为空).然后谁在加载javax.swing.*类.我在导入的包/必需的捆绑包中的任何地方都没有提到它,但是仍然可以正常加载.我想知道谁是正式"负责加载的人?提前非常感谢.

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.

推荐答案

来自

equinox从JRE知道给定JSE级别的特定软件包.这些指定的软件包由Equinox系统自动导出.捆绑软件取决于您所处的执行环境级别(例如J2SE-1.3,J2SE-1.4等)

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.)

只要您定义"org.osgi.framework.executionenvironment",春分就应该加载正确的JVM软件包并将其导出以供捆绑使用.

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.

这篇关于谁在Equinox osgi容器中加载javax.swing.*类?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆