知识卡片
可配置行为预留适配空间
组件可在构建、初始化或运行时从预设选项选择行为,例如支持不同协议版本。明确这些变点能提高系统与未来组件的假设匹配机会,并覆盖部分语法、数据、行为及时序距离。配置只能在已实现且验证的范围内选择,不能用开关代替未知能力的实现。
这张卡片看不懂?
这张卡片的反馈已满 10 条,暂时无法继续提交。
已有反馈 · 0 / 10 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- 可集成性 · 查看原书依据
Behavior of a component can be configured during the build phase (recompile with a different flag), during system initialization (read a configuration file or fetch data from a database), or during runtime (specify a protocol version as part of your requests).
参考来源
- 位置:《Software Architecture in Practice, 4th Edition》第7章《可集成性》(来源项目:book-sources;源文件:extracted/Software Architecture in Practice, 4th Edition/_epub-src/ch07.html)
- 结论依据:原文的定义、机制或比较支持“组件可在构建、初始化或运行时从预设选项选择行为,例如支持不同协议版本”;正文保留其条件与取舍。
- 原始内容:Behavior of a component can be configured during the build phase (recompile with a different flag), during system initialization (read a configuration file or fetch data from a database), or during runtime (specify a protocol version as part of your requests).