简体   繁体   English

Equinox OSGi激活同一捆绑包的两个版本

[英]Equinox OSGi activating two versions of the same bundle

I am looking for settung up my RCP and install all of the available applications on it. 我正在寻找安装RCP并在其上安装所有可用应用程序的地方。 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)

As a result in order to have both A and C installed on my RCP, I need both versions of B available and running. 因此,为了在我的RCP上同时安装A和C,我需要B的两个版本都可用并且正在运行。 Assuming that B is not a singleton, what is the behavior of Equinox OSGI? 假设B不是单例,Equinox OSGI的行为是什么? In some places I read that OSGI will catch the latest version and loads that bundle. 在某些地方,我读到OSGI将捕获最新版本并加载该捆绑包。 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? 但是,我想知道是否有任何方法可以为插件A激活B 1.0.0和为插件C激活B 2.0.0?

Yes this is simply the normal behaviour of OSGi. 是的,这只是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. 依赖版本范围是不重叠的,因此您将能够安装B的版本1.x和2.x。然后,A将连接到版本1,C将连接到版本2。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 有没有一种将Equinox源添加到Eclipse的好方法,以帮助调试OSGi捆绑软件? - Is there a good way to add Equinox source to Eclipse to help debugging an OSGi bundle? 如何在 OSGi/Equinox/Eclipse 中附加库包的源代码? - How do I attach the sources for a library bundle in OSGi/Equinox/Eclipse? gogo:BundleException:尝试使用Equinox读取OSGi中的捆绑软件时发生错误 - gogo: BundleException: An error occurred trying to read the bundle in OSGi with Equinox Eclipse PDE:重新捆绑捆绑到正在运行的Equinox osgi框架 - Eclipse PDE: Redeploy bundle to running equinox osgi framework 如何在两个OSGi捆绑包中使用同一JAR的两个版本? - How to use two versions of the same JAR in two bundles of OSGi? Osgi应用-Equinox 3.9中缺少捆绑包“ org.eclipse.equinox.http” - Osgi app - Missing Bundle “org.eclipse.equinox.http” in Equinox 3.9 Equinox和OSGI捆绑 - Equinox and OSGI bundles Equinox / OSGi / Eclipse插件开发:这些依赖关系来自何处以及如何指定其最低版本? - Equinox/OSGi/Eclipse plugin development: where do these dependencies come from and how do I specify their minimum versions? 在Equinox中是否可以将OSGi包标记为从其包含的功能的p2.inf开始? - In Equinox Is it possible to to mark an OSGi bundle as started from its containing feature's p2.inf? 在OSGi上启动Equinox时出错 - Having error to start Equinox on OSGi
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM