计算机与现代化

• 软件工程 • 上一篇    下一篇

基于AOP的人事档案日志模块设计与实现

  

  1.  (黄淮学院国际学院,河南驻马店463000)
  • 收稿日期:2016-06-02 出版日期:2016-09-12 发布日期:2016-09-13
  • 作者简介:吴海涛(1974-),男,河南平舆人,黄淮学院国际学院副教授,CCF会员,博士,研究方向:软件体系结构,面向服务的软件工程,智能信息处理; 李福荣(1981),女,辽宁义县人,讲师,硕士,研究方向:面向方面编程,软件体系结构。
  • 基金资助:
    河南省自然科学基金研究资助项目(142300410288,132400411178)

Design and Implementation of Logging Module in Personnel File System Based on AOP

  1. (International College, Huanghuai University, Zhumadian 463000, China)
  • Received:2016-06-02 Online:2016-09-12 Published:2016-09-13

摘要: 在分析人事档案功能模块的基础上,采用面向方面编程(AOP)技术将日志从功能模块中分离出来,并将日志作为一个独立的模块。该模块使用方面类AspectLog中的通知实现日志记录在业务操作后,写入到数据库的日志表中,并采用DAO模式实现日志的显示和维护。实际系统运行结果表明,本文提出的基于AOP技术解决日志模块的设计思想具有可行性,并具有一定的理论价值和应用价值。

关键词: 面向方面编程, 人事档案系统, 日志模块, 非功能属性

Abstract: Based on the analysis of the function module in personnel file system, the Aspect-oriented Programming (AOP) technology is used to separate the logging module from function module as an independent module. It used advice notice in AspectLog to write log in the database log table and used the DAO pattern to achieve the display and maintenance of log records. The actual running results show that the AOP technology is feasible in solving the design of logging module, and has certain theoretical value and application value.

Key words: aspect-oriented programming, personnel file system, logging module, non-functional attributes

中图分类号: