Equinox OSGi activating two versions of the same bundle

*爱你&永不变心* 提交于 2019-12-25 06:55:18

问题


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)

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. 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?


回答1:


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.



来源:https://stackoverflow.com/questions/21589333/equinox-osgi-activating-two-versions-of-the-same-bundle

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!