知识卡片
循环依赖检查守护模块边界
组件A依赖B、B又间接依赖A时,单独复用或修改某组件常牵动整个环。原书以 JDepend 在构建中检查包之间是否有环,检测到环就让测试失败。它守护的是依赖方向,不会替团队判断某次跨边界调用的业务意义;规则需与开发者共同理解。
这张卡片看不懂?
这张卡片的反馈已满 10 条,暂时无法继续提交。
已有反馈 · 0 / 10 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- Measuring and Governing Architecture Characteristics · 查看原书依据
The tool understands the structure of Java packages and fails the test if it finds any cycles.
参考来源
- 位置:《Fundamentals of Software Architecture》第08章《Measuring and Governing Architecture Characteristics》(源文件:`OEBPS/ch06.html`)
- 结论依据:原书例6-2给出JDepend周期检测,图6-3解释循环依赖对模块化的影响。
- 原始内容:The tool understands the structure of Java packages and fails the test if it finds any cycles.