OSGi:Apache Felix 和 Apache Karaf 有什么区别? [英] OSGi: What are the differences between Apache Felix and Apache Karaf?

查看:36
本文介绍了OSGi:Apache Felix 和 Apache Karaf 有什么区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Apache KarafApache Felix.它被定义为一个轻量级的 OSGi 容器".

Apache Karaf is a sub project of Apache Felix. It is defined as "a lightweight OSGi container".

我不明白什么时候应该使用重量级,什么时候使用轻量级.他们的网站没有过多解释这一点.

I don't understand when should I use the heavyweight and when to use the lightweight. Their site doesn't explain this too much.

推荐答案

轻量级 OSGi 容器"标签对比 Karaf 具有更多功能丰富的 OSGi 容器,不是Felix.

The 'lightweight OSGi container' label is contrasting Karaf with more feature rich OSGi containers, not with Felix.

引用 Guillaume Nodet(Karaf 的作者)此处:

To quote Guillaume Nodet (Karaf's author) from here:

Felix 只是 OSGi 核心运行时.Karaf 通过添加其他功能(例如控制台、SSH 远程处理机制、文件部署程序等)来提供基于 Felix 的分发版".

Felix is just the OSGi core runtime. Karaf provides a "distribution" based on Felix by adding other features such as a console, an SSH remoting mechanism, a file deployer and more.

在这个 Karaf 架构图中,Felix(或其他 OSGi 实现 - 目前 Equinox 也是支持)是OSGi框,其他框是Karaf添加的功能:

In this diagram of the Karaf architecture, Felix (or other OSGi implementation - currently Equinox is also supported) is the OSGi box, the other boxes are the features added by Karaf:

因此,除非您有 Karaf 无法满足的特定需求(需要访问底层实现),否则使用它通常是有意义的,因为它提供了更多开箱即用"的功能.

Therefore, unless you have specific needs which are not met by Karaf (requiring access to the underlying implementation) it usually makes sense to use this since it provides more 'out of the box'.

这篇关于OSGi:Apache Felix 和 Apache Karaf 有什么区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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