摘要
为了有效解决模块之间因共享数据而产生的交互耦合,提出了一种新的设计模式——注册仓模式。该模式封装了共享数据,避免了数据在各个使用者之间传递,分离了数据的提供者和使用者,实现了模块间一种简化的数据访问协议,降低了模块间的耦合度。理论和实践证明注册仓模式能良好地适用基于组件或模块的软件体系架构下面向对象的程序设计。
In order to solve the interaction coupling caused by sharing data between software modules effectively, a new design pattern is presented named registry pattern. This pattern encapsulates the sharing data, avoids the data transfer between each module, separates the data providers and the data accessors, realizes one kind of simplified access protocol between the objects, and ultimately reduces the degree of modules' coupling. The theory and the practice proof that registry pattern is effective for the object-oriented design, which is component, or module based software architecture.
出处
《计算机工程》
CAS
CSCD
北大核心
2007年第20期43-45,48,共4页
Computer Engineering
基金
国家自然科学基金资助项目(60573090)