期刊文献+

GoF23中Observer设计模式的AOP实现与OOP实现的对比 被引量:3

Comparative Implementation of AOP and OOP on GoF23 Observer Design Pattern
在线阅读 下载PDF
导出
摘要 GoF23中的Observer模式定义了一个一对多的依赖关系,当一个对象状态改变时,所有依赖该对象的对象都被通知并且自动执行更新操作。Observer模式的OOP实现方案中,模式的实现代码与模式的参与者代码混合在一起,容易产生代码缠结和代码分散等诸多问题。利用AOP技术能很好的将系统中模式实现的代码封装在一个独立的模块中,从而使得程序的模块化程度和可复用性得到改善。 In GoF23, the Observer pattern is to "define a one-to-many dependency between objects so that when one object changes state, all its dependents are notified and updated automatically". Traditionally OOP implements of the Observer pattern tangle the pattern implements codes with pattern participant codes together. Using AOP, the implementation of the pattern can be wrapped into one individual module. By this way the modularity and reusability of the whole system will be greatly improved.
出处 《微计算机信息》 北大核心 2006年第05X期225-227,219,共4页 Control & Automation
基金 甘肃省自然科学基金资助项目(ZS031-A25-015-G)
关键词 设计模式 OOP AOP Design Patterns OOP AOP
  • 相关文献

参考文献3

二级参考文献6

  • 1张鲁国,马自堂.智能卡操作系统中存储管理设计[J].微计算机信息,2005,21(08X):18-19. 被引量:18
  • 2Gamma E,Helm R,Johnson R,et al.Design Patterns:Elements of reusable object-oriented software[M].Boston:Addison Wesley,1995.
  • 3Jain H,Vitharana P,Zahedi F M.An Assessment Model for Requirements Identification in Component-based Software Development[J].ACM SIGMIS Database,2003,34(4):48-63.
  • 4Rumbaugh J,Jacobson I,Booch G.The Unified Modeling Language Reference Manual[M].Boston:Addison Wesley,1998.
  • 5(美)Boggs W,Boggs M.UML与Rational Rose 2002从入门到精通.北京:电子工业出版社.2002.
  • 6王聪,周胜军,江光杰.设计模式在通信系统仿真软件中的应用[J].系统仿真学报,2004,16(4):677-680. 被引量:6

共引文献9

同被引文献20

  • 1Erich GammaRichard HelmRalph Johnsonet al 李英军 等译.设计模式:可复用面向对象软件的基础[M].北京:机械工业出版社,2000..
  • 2Ralph Johnson, Bobby Wolf, Type Object. Pattern Languages of Program Design 3, Addisson Wesley, 1998,
  • 3Brian Foote, Joseph W. Yoder. Metadata and Active Object Models. Proceedings of Plop98. Technical Report #wucs-98-25, Dept. of Computer Science, Washington University Department of Computer Science. 1998.
  • 4Todd M.Thomas. Java Data Access-JDBC,JNDI,and JAXP[M]. Published by M&T Books,2002.
  • 5Will Iversion. Hibernate:A J2EE Developer's Guide[M]. Published by Addison Wesley Professional,2004.
  • 6Gavin King. Hibernate in Action[M]. Published by Manning Publications Co,2004.
  • 7Graig Walls,Ryan Breidenbach. Spring in Action[M]. Published by Manning Publications Co.,2005.
  • 8Ted Husted,Cedric Dumoulin,George Franciseus,David Winterfeldt.Struts in Action [M]. Published by Manning Publications Co.,2003.
  • 9Bill Burke,Sacha Labourey,Rchard Monson-Haefel. Enterprise JavaBeans,4th Edition[M]. Published by O'Reilly,2004.
  • 10Jason Hunter,William Crawford. Java Servlet Programming,2nd Edition[M]. Published by O'Reilly,2001.

引证文献3

二级引证文献4

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

内容加载中请稍等...
;
使用帮助 返回顶部