OSGI容器标识Equinox/knopflerfish以及Equinox osgi jar和核心osgi jar之间的关系 [英] OSGI container identification Equinox / knopflerfish and relation ship between equinox osgi jar and core osgi jar

查看:131
本文介绍了OSGI容器标识Equinox/knopflerfish以及Equinox osgi jar和核心osgi jar之间的关系的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

问题1:-

我正在研究一个大量使用OSGI的项目.我是OSGI的新手.在我的项目中,我看到了春分和克诺普勒鱼/和/或克诺普勒鱼捆的JARS.

I am working on a project which heavily uses OSGI. I am a newbee to OSGI. In my project I see JARS for both equinox and knopflerfish / and or knopflerfish bundles.

问题2:-

如何在Equinox和Knoplerfish中确定OSGI在我的项目中使用哪个容器?我认为OSGI不能一次使用两个容器.

How do I determine among Equinox and Knoplerfish, which container does the OSGI use in my project? I assume OSGI can not use both the containers at a time.

问题3:-

此链接提到了Equinox框架需要org.eclipse.osgi_<version>.jar来实现OSGI内核.因此,这是否意味着它不需要核心OSGI jar,即 OSGI网站中的osgi.core-6.0.0.

This link mentions Equinox framework requires org.eclipse.osgi_<version>.jar to implement OSGI core. So does this mean it does not require core OSGI jar, osgi.core-6.0.0 from OSGI website.

在背后的春分罐org.eclipse.osgi_<version>.jar是否使用核心OSGI罐osgi.core-6.0.0?

Does the equinox jar org.eclipse.osgi_<version>.jar behind the scene uses core OSGI jar osgi.core-6.0.0?

春分罐org.eclipse.osgi_<version>.jar是否是核心OSGI罐osgi.core-6.0.0的包装?

Is the equinox jar org.eclipse.osgi_<version>.jar a wrapper for core OSGI jar osgi.core-6.0.0?

春分罐org.eclipse.osgi_<version>.jar和核心OSGI罐osgi.core-6.0.0之间是否存在任何关系,依赖关系?或者这两个罐彼此独立吗?

Is there any relationship, dependency between the equinox jar org.eclipse.osgi_<version>.jar and the core OSGI jar osgi.core-6.0.0 Or are the two jars independent of each other?

问题4:-

假设我正在使用Equinox容器.我需要将项目更新为最新的OSGI版本.要将项目更新到最新的OSGI jar,我将用最新的jar替换该JAR.

Suppose I am using Equinox container. And I need to update my project to the latest OSGI version. To update the project to latest OSGI jar, which JAR do i replace with the latest jar.

我是否要从[OSGI网站]将core OSGI jar替换为最新的osgi.core-6.0.0(OSGI的最新版本),或者将春分罐org.eclipse.osgi_<version>.jar更新到其最新版本?

Do I replace core OSGI jar to the latest osgi.core-6.0.0(latest version of OSGI) from [OSGI website] or do I update the equinox jar org.eclipse.osgi_<version>.jar to it's latest version?

推荐答案

osgi.core-6.0.0是一个提供规范接口和类的捆绑软件,由OSGi联盟发布. org.eclipse.osgi_.jar是OSGi框架的春分实现.

osgi.core-6.0.0 is a bundle providing the specification interfaces and classes and is released by the OSGi alliance. org.eclipse.osgi_.jar is the equinox implementation of an OSGi framework.

在OSGi中,提供API实现的捆绑软件也嵌入了相同的API是很常见的.对于春分框架,情况就是这样.在jar中,您还将找到core的所有API接口.

In OSGi it is very common that a bundle providing the implementation of an API also embeds the same API. For the equinox framework this is the case. In the jar you will also find all the API interfaces of core too.

这样做主要是为了方便起见,因此人们只需启动jar即可,而不必也找到正确的API jar并进行部署.

This is mainly done for convenience so people can just start up the jar and do not have to also find the correct API jar and deploy it.

要升级框架,您只需更换春分罐.通常,春分罐并不是唯一实现OSGi规范的设备.您可能还将实现config admin服务以及核心以外的其他OSGi规范.要也更新这些,您也必须更换这些罐子.在大多数情况下,尽管它们通常可以很好地配合使用,但是您可以单独更新它们.

For an upgrade of the framework you just replace the equinox jar. Typically the equinox jar is not the only one implementing OSGi specs though. You will probably also have an implementation of the config admin service and maybe also other OSGi specs outside core. To also update these you have to replace these jars too. In most cases you can update these separately though as they normally play together nicely.

这篇关于OSGI容器标识Equinox/knopflerfish以及Equinox osgi jar和核心osgi jar之间的关系的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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