知识卡片
插件互依会引入传递依赖冲突
插件最好只依赖核心,彼此不直接依赖。插件互依后,核心可能必须协调传递依赖:两个插件需要同一库的不同版本时,装载和通信都会复杂化。Eclipse 是原书举的复杂场景;可以存在插件依赖,但应把版本冲突和运行兼容作为显式成本,而非默认忽略。
这张卡片看不懂?
这张卡片已通过人工审查,不再接受失败反馈。
已有反馈 · 0 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- Microkernel Architecture Style · 查看原书依据
What happens if two plug-ins depend on different versions of the same core library?
参考来源
- 位置:《Fundamentals of Software Architecture》原书第13章《Microkernel Architecture Style》(阅读计划第16项;源文件:`OEBPS/ch13.html`)
- 结论依据:原文说明插件互依时核心要解决传递依赖和版本冲突,建议尽量避免。
- 原始内容:What happens if two plug-ins depend on different versions of the same core library?