重庆理工大学学报:自然科学2012,Vol.26Issue(9):100-104,5.
基于事件机制的观察者模式及应用
The Applied Research of Observer Pattern Based on Event Mechanism
摘要
Abstract
The observer pattern is mainly used to weaken the coupled relations between objects. The event mechanism buih on the basis of the delegate type further decouples subject and observer object of the observer pattern, improving the ability that the observer pattern can adapt to the changes better. This paper not only discusses implementation methods of delegate and event mechanism, but also ex- pounds the characteristics of observer pattern and principles, and then puts forward the new structure and programming framework of the event-based mechanism in observer pattern. In the end, it analyzes the main application scenarios.关键词
观察者模式/事件/委托/设计模式Key words
observer pattern/event/delegate/design pattern分类
信息技术与安全科学引用本文复制引用
吴清寿..基于事件机制的观察者模式及应用[J].重庆理工大学学报:自然科学,2012,26(9):100-104,5.基金项目
福建省教育厅科技项目 ()
武夷学院科研基金资助项目 ()