简体   繁体   English

Weld-osgi,pax-cdi和fighterfish有什么区别

[英]What is the difference between weld-osgi, pax-cdi and fighterfish

据我了解,这3个项目是CDI和OSGI之间的链接,但是它们之间有什么区别?

FighterFish lets you inject OSGi services into CDI beans, but it does not let you publish CDI beans as OSGi services. FighterFish允许您将OSGi服务注入到CDI bean中,但不允许您将CDI bean作为OSGi服务发布。

Weld OSGi is a (now obsolete) extension of Weld for OSGi which requires a modified version of Weld 1.x. Weld OSGi是Weld for OSGi的(现已过时)扩展,它需要Weld 1.x的修改版本。 (1.2.0.Beta1) (1.2.0.Beta1)

Weld 2.1 and higher include some modifications originating from Weld OSGi which make the Weld core more OSGi-friendly by supporting multiple CDI containers in parallel, independent of the thread-context class loader. Weld 2.1及更高版本包括源自Weld OSGi的一些修改,这些修改通过并行支持多个CDI容器(与线程上下文类加载器无关),使Weld内核对OSGi更加友好。

The Weld Reference manual now recommends using Pax CDI in OSGi environments. 现在,《焊接参考手册》建议在OSGi环境中使用Pax CDI。

Pax CDI supports injection and registration of OSGi services. Pax CDI支持OSGi服务的注入注册。 It is not tied to any given CDI implementation (unlike Weld OSGi) and currently supports Weld 2.2.x and OpenWebBeans 1.5.0. 它不依赖于任何给定的CDI实现(与Weld OSGi不同),并且当前支持Weld 2.2.x和OpenWebBeans 1.5.0。

Conceptually, Pax CDI is more or less a superset of both FighterFish CDI and Weld OSGi, ie for most FighterFish and Weld OSGi features, you'll find equivalent solutions in Pax CDI. 从概念上讲,Pax CDI或多或少是FighterFish CDI和Weld OSGi的超集,即对于大多数FighterFish和Weld OSGi功能,您将在Pax CDI中找到等效的解决方案。

At some time, Pax CDI was planned to be the official reference implementation of the CDI Service specified by the OSGi Enterprise Expert Group. 有时,Pax CDI计划成为OSGi企业专家组指定的CDI服务的官方参考实现。 Since this specification effort is currently stalled (for all we know), this is no longer the case, and the Pax CDI project is now following its own roadmap. 由于此规范工作目前处于停滞状态(就我们所知),因此情况不再如此,Pax CDI项目现在正在遵循自己的路线图。

Disclaimer: I'm the Pax CDI project lead. 免责声明:我是Pax CDI项目负责人。

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM