摘要
观察者(Observer)模式是面向对象程序设计中常用的模式之一。介绍了观察者模式的相关概念,分析了观察者模型中目标和观察者之间的依赖关系。提出了ASP.NET下旨在简化设计、降低耦合的观察者模式实现方案,并结合一个电子商务实例进行了阐述。
The Observer Pattern is one of the most popular design patterns in object-oriented programming. The concept of Observer Pattern is introduced, and the dependency between object and observer in Observer Pattern is analyzed. An implementation scheme of Observer Pattern based on ASP. NET for design simplification and coupling reduction is presented. Finally, an instance of E-Commerce application is discussed.
出处
《计算机应用与软件》
CSCD
北大核心
2008年第11期172-175,共4页
Computer Applications and Software
关键词
观察者模式
事件
委托
Observer pattern Event Delegation