Equinox OSGi激活同一个软件包的两个版本 [英] Equinox OSGi activating two versions of the same bundle

查看:132
本文介绍了Equinox OSGi激活同一个软件包的两个版本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找安装我的RCP并安装所有可用的应用程序。然而;这些应用程序具有许多内部和外部依赖关系,例如。

I am looking for settung up my RCP and install all of the available applications on it. However; these applications have many internal and external dependencies such as.

A - > B [1.0.0,2.0.0)

A -> B [1.0.0, 2.0.0)

C - > B [2.0.0,3.0.0]

C -> B [2.0.0, 3.0.0)

因此,为了在我的RCP上安装A和C,我需要两个版本的B都可以运行。假设B不是单身人士,Equinox OSGI的行为是什么?在某些地方我看到OSGI将会捕获最新版本并加载该捆绑。但是,我想知道有没有办法激活插件A和B 2.0.0插件C的B 1.0.0?

As a result in order to have both A and C installed on my RCP, I need both versions of B available and running. Assuming that B is not a singleton, what is the behavior of Equinox OSGI? In some places I read that OSGI will catch the latest version and loads that bundle. However, I am wondering if there is any way to activate B 1.0.0 for plugin A and B 2.0.0 for plugin C?

推荐答案

是的,这只是OSGi的正常行为。依赖版本范围是不重叠的,因此您将能够安装B的版本1.x和2.x。然后A将连接到版本1,C将被连接到2。

Yes this is simply the normal behaviour of OSGi. The dependency version ranges are non-overlapping so you will be able to install both versions 1.x and 2.x of B. Then A will get wired to version 1 and C will get wired to 2.

这篇关于Equinox OSGi激活同一个软件包的两个版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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