Gemini和Apache Aries蓝图容器 [英] Gemini and Apache Aries blueprint container

查看:77
本文介绍了Gemini和Apache Aries蓝图容器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Gemini 是OSGi蓝图容器的参考实现,而 Apache Aries 是另一个被广泛使用的蓝图容器...包括在Apache Karaf中.

Gemini is the reference implementation for OSGi blueprint container, and Apache Aries is another blueprint container that is widely used...including within Apache Karaf.

如果我要开始一个新项目(需要开源技术)并计划使用蓝图,那么在这两者之间进行选择时应该考虑什么?

If I'm starting a new project (with open source technologies as a requirement) and plan to use blueprint, what should be my considerations when choosing between these two?

根据要使用的OSGi容器进行选择,其中:

Is the choice based on what OSGi container will be used, where:

  • 对于处女座,双子座是您最好的/唯一的?蓝图容器的选择
  • 对于Apache Karaf,然后是Apache Aries的蓝图容器(如果首选)

这有关系吗?即我是否可以根据蓝图规范进行编码,然后让部署决定生产中使用的DI容器?

Does it even matter? i.e. Can I just code against blueprint specs, and let the deployment decide what DI container is used in production?

很抱歉,如果这个问题不是很具体,但是这个话题本身让我感到困惑.

Sorry if this question is not very specific, but the topic itself is rather confusing for me.

推荐答案

如果仅使用Blueprint,那么按照规范进行编码并在部署时做出决定的想法就是一个好主意.这两个实现的行为应相同.如果您不走运,您会在这两种方法中发现不同的错误,但由于两种实现都已经成熟,因此希望不会.可能影响您最终决定的一个因素是,您可能会发现两者之间的性能有所不同. (但是为了提高性能,请不要猜测!)

If you're only using Blueprint, then your idea of coding against the specification and deciding at deploy time is a good one. The behaviour of the two implementations should be identical. If you're unlucky you'll find different bugs in the two, but hopefully not since both implementations are mature. One factor which might influence your eventual decision is that you may find the performance is different between the two. (But for performance, measure, don't guess!)

如果您打算做一些超出核心蓝图的工作,例如容器管理的JPA和JTA,您会发现Aries和Gemini之间有更多明显的区别.我知道Aries在这一领域有很多Blueprint扩展程序(例如,我是Aries的提交者).

If you're going to do things beyond core Blueprint, like container managed JPA and JTA you'll find there are more obvious differences between Aries and Gemini. I know Aries has a number of Blueprint extenders in this area, for example (I'm an Aries committer).

原则上,白羊座应该在处女座和卡拉夫的双子座中运行,但是我不确定我是否愿意自己尝试一下,因为这两个堆栈中的内容都基于蓝图.

In principle Aries should run in Virgo and Gemini in Karaf, but I'm not sure I'd fancy trying it myself, since things in both stacks do build upon Blueprint.

-

http://www.manning.com/cummins -行动中的企业OSGi

http://www.manning.com/cummins - Enterprise OSGi in Action

这篇关于Gemini和Apache Aries蓝图容器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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