我可以将 osgi.enterprise.jar 放入我的 equinox 插件文件夹中吗?
我对 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
不,你不能那样做。
OSGI.org 的文件主要是接口,并不是完整的实现。
No. You can't do that.
The file from OSGI.org is mostly interfaces, it is not complete implementation.
“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 removeorg.eclipse.osgi.services
.