知识卡片
包装桥接中介适配程度不同
包装器成为访问一个具体组件的唯一入口,可保留、隐藏或翻译其接口;桥接器独立于特定组件,由外部显式调用,转换在构造时确定;中介还具规划能力,可运行时决定转换并成为长期架构角色。三者都用额外实现与运行开销,换取不用修改原组件的整合。
相关:[[裁剪接口不必改原组件]]。
这张卡片看不懂?
这张卡片已通过人工审查,不再接受失败反馈。
已有反馈 · 0 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- 可集成性 · 查看原书依据
The major distinction between bridges and mediators, is that mediators incorporate a planning function that results in runtime determination of the translation, whereas bridges establish this translation at bridge construction time.
参考来源
- 位置:《Software Architecture in Practice, 4th Edition》第7章《可集成性》(来源项目:book-sources;源文件:extracted/Software Architecture in Practice, 4th Edition/_epub-src/ch07.html)
- 结论依据:原文的定义、机制或比较支持“包装器成为访问一个具体组件的唯一入口,可保留、隐藏或翻译其接口;桥接器独立于特定组件,由外部显式调用,转换在构造时确定;中介还具规划能力,可运行时决定转换并成为长期架构角色”;正文保留其条件与取舍。
- 原始内容:The major distinction between bridges and mediators, is that mediators incorporate a planning function that results in runtime determination of the translation, whereas bridges establish this translation at bridge construction time.