首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 其他教程 > 操作系统 >

osgi and equinox-翻阅笔记

2012-06-29 
osgi and equinox-阅读笔记The?system bundle?is a special bundle that represents the OSGi framework i

osgi and equinox-阅读笔记

The?system bundle?is a special bundle that represents the OSGi framework itself, from within that framework. It has the following roles:

  • Exports packages from the JRE (excluding?java.*), for example?javax.swing,?org.w3c.com?etc.
  • Exports the OSGi framework packages such as?org.osgi.framework.
  • Stopping the system bundle has the effect of shutting down the OSGi framework.
  • Updating the system bundle has the effect of restarting the OSGi framework (requires support from the launcher).

    The system bundle always has a bundle id of 0 (zero), so in code we can safely obtain a reference to it as follows:

    Bundle systemBundle = context.getBundle(0);

热点排行