知识卡片

普通读书笔记卡 · 2299.h.1.a.1.a

公共抽象收敛集成入口

理解等级:中级

相似但不完全相同的能力可隐藏在一个更一般的服务抽象后,新组件只需与该抽象集成。配合包装或适配器,可统一供应商特有语法、数据和部分行为,使安全、日志或转换等变化集中修改。抽象只应覆盖稳定公共语义,不能靠一个名字假装所有差异都已解决。

相关:[[封装不能消除质量依赖]]。

这张卡片看不懂?

已有反馈 · 0 / 10 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    • 可集成性 · 查看原书依据

      In terms of integrability, this means that future components can be integrated with a single abstraction rather than separately integrated with each of the specific elements. When the abstract common services tactic is combined with an intermediary (such as a wrapper or adapter), it can also normalize syntactic and semantic variations among the specific elements.

    参考来源

    - 位置:《Software Architecture in Practice, 4th Edition》第7章《可集成性》(来源项目:book-sources;源文件:extracted/Software Architecture in Practice, 4th Edition/_epub-src/ch07.html) - 结论依据:原文的定义、机制或比较支持“相似但不完全相同的能力可隐藏在一个更一般的服务抽象后,新组件只需与该抽象集成”;正文保留其条件与取舍。 - 原始内容:In terms of integrability, this means that future components can be integrated with a single abstraction rather than separately integrated with each of the specific elements. When the abstract common services tactic is combined with an intermediary (such as a wrapper or adapter), it can also normalize syntactic and semantic variations among the specific elements.