知识卡片
封装不能消除质量依赖
封装要求所有直接访问经过显式接口,隐藏内部实现及不相关接口,从而减少依赖数量与部分语义差异。但使用者仍可能依赖其延迟、可用性等服务质量,接口形式稳定不等于这些假设自动稳定。封装是一切整合战术基础,仍需检查未被边界挡住的隐含依赖。
相关:[[语法解耦不等整体独立]]。
这张卡片看不懂?
这张卡片已通过人工审查,不再接受失败反馈。
已有反馈 · 0 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- 可集成性 · 查看原书依据
the external responsibilities can only directly interact with the element through the exposed interface (indirect interactions, such as dependence on quality of service, will likely remain unchanged). Encapsulation may also hide interfaces that are not relevant for a particular integration task.
参考来源
- 位置:《Software Architecture in Practice, 4th Edition》第7章《可集成性》(来源项目:book-sources;源文件:extracted/Software Architecture in Practice, 4th Edition/_epub-src/ch07.html)
- 结论依据:原文的定义、机制或比较支持“封装要求所有直接访问经过显式接口,隐藏内部实现及不相关接口,从而减少依赖数量与部分语义差异”;正文保留其条件与取舍。
- 原始内容:the external responsibilities can only directly interact with the element through the exposed interface (indirect interactions, such as dependence on quality of service, will likely remain unchanged). Encapsulation may also hide interfaces that are not relevant for a particular integration task.