0
为了避免我们有两个osgi bundle:bundleA和bundleB。在bundleB中,我们有一些texts.properties
。所以,在bundleA我们做Osgi Bundle更新和ResourceBundle
ResourceBundle rb=
ResourceBundle.getBundle("com/foo/texts",locale, classFromBundleB.getClassLoader());
现在,我们更新bunldeB或完全删除它,并安装和启动包含的texts.properties
新版本bundleB的新版本。还有两个问题:
- 现有'rb'会发生什么?它必须工作吗?
- 如果在新版本的bundleB出现后,我们使用与上述相同的代码 - 我们将在
rb
中看到texts.properties
的新版本?或者我们需要为此做额外的操作?