更新时是否有限制捆绑版本?
当我在 OSGi 中使用 update
命令时,框架 (Equinox) 使用更新位置中的文件来更新包。无论该位置中的捆绑包是否具有更高版本。例如,框架将版本 1.2.0 更新为 1.0.0。
是否有办法限制将用作更新文件的文件版本?我的意思是我们可以在导入包中做些什么。
When I use update
command in OSGi, the framework (Equinox) uses the file in update location in order to update the bundle. No matter if the bundle in the location has a higher version or not. for example the framework updated version 1.2.0 with 1.0.0.
is there anyway to limit the version of the file that is going to be used as the updated file? I mean something like what we can do in import bundles.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
不,框架不会为您进行此类检查。如果您不想从该位置更新包,则不要调用
update
即可。请注意,可以使用采用
InputStream
的update
方法版本,从与最初安装位置不同的位置更新包,例如:No, the framework won't do this kind of checking for you. If you don't want to update the bundle from that location, just don't call
update
.Note that it is possible to update a bundle from a different location than it was originally installed from, using the version of the
update
method that takes anInputStream
, e.g.: