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:
java.*
), for example?javax.swing
,?org.w3c.com
?etc.org.osgi.framework
.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);