gpt4 book ai didi

java - 服务模型与扩展器模型?

转载 作者:塔克拉玛干 更新时间:2023-11-03 04:44:38 26 4
gpt4 key购买 nike

<分区>

我刚刚彻底审查了 Apache Felix Application Demonstration与形状。文章状态:

When creating an OSGi-based application there are two main orthogonal issues to consider:

  1. Service model vs. extender model
  2. Bundled application vs. hosted framework

The first issue is actually a general issue when creating OSGi-based applications. There are two general approaches that can be used when creating an extensible OSGi application. The service model approach uses the OSGi service concept and the service registry as the extensibility mechanism. The extender model approach uses the OSGi installed bundle set as the extensibility mechanism. Both approaches have their advantages and disadvantages and they can be used independently or together.

关于第二点,我认为这是一个普遍接受的最佳实践,首选捆绑应用程序,除非有充分的理由您被迫使用托管框架。

关于第一点,在研究了服务模型和扩展器模型后,我了解了它们之间的区别,但我仍在努力弄清楚不同模型的优缺点。

每种模型(服务与扩展器)的优点和缺点是什么?确定使用哪种模型或何时适合结合使用两者的最佳实践是什么?

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com