我可以将 osgi.enterprise.jar 放入我的 equinox 插件文件夹中吗?

发布于 2024-12-01 16:46:45 字数 361 浏览 1 评论 0原文

我对 OSGi Enterprise 规范感兴趣。目前我只对 JDBC 连接感兴趣,但这可能会改变。

http://www.osgi.org/Download/Release4V42 我可以找到 osgi.enterprise .jar(配套代码链接)。我可以将其安装在我的Equinox 容器中并使用吗?

我的印象是某些类是重叠的(例如 org.osgi.service.component),这不会导致问题吗?或者我应该卸载 org.eclipse.osgi.services 包并使用 osgi.enterprise 来代替?

I'm interested in the OSGi Enterprise specification. At the moment I'm only interested in the JDBC connectivity, but that may change.

At http://www.osgi.org/Download/Release4V42 I can find the osgi.enterprise.jar (the companion code link). Can I just install it in my equinox container and use it?

I had the impression that some of the classes are overlapping (for instance org.osgi.service.component), doesn't this lead to problems? Or should I then just uninstall the org.eclipse.osgi.services bundle and use the osgi.enterprise instead?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

软的没边 2024-12-08 16:46:45

不,你不能那样做。
OSGI.org 的文件主要是接口,并不是完整的实现。

No. You can't do that.
The file from OSGI.org is mostly interfaces, it is not complete implementation.

丘比特射中我 2024-12-08 16:46:45

“J-16 SDiZ”的答案是正确的,因为 osgi.enterprise.jar 是纯接口而不是实现。

您还询问了与 org.eclipse.osgi.services 捆绑包的重叠……事实上,OSGi 企业 JAR 应该是它的严格超集。安装这两个包并没有太大问题,但实际上也没有必要,因此为了最大程度地减少混乱,我可能会删除 org.eclipse.osgi.services。

The answer by "J-16 SDiZ" is correct, in that the osgi.enterprise.jar is pure interfaces rather than implementations.

You also asked about the overlap with the org.eclipse.osgi.services bundle… in fact the OSGi enterprise JAR should be a strict superset of it. There is not much problem with having both these bundles installed but it is also not really necessary, so to minimise confusion I would probably remove org.eclipse.osgi.services.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文