首页> 中文期刊> 《计算机技术与发展》 >基于AOP的动态日志系统的实现

基于AOP的动态日志系统的实现

         

摘要

为了避免在软件系统中的代码散射(scattering)和代码缠结(tangling),提高软件系统的可维护性与可扩展性,需要将系统必要的但与系统的主要业务无关的一些功能分离出来,单独作为一个模块来实现.然后使用静态织入或者动态织人的方法将这些功能与主要业务联接在一起,组合成一个完整的软件系统.采用面向方面(Aspect-Oriented Programming,AOP)的编程方式将日志功能与主要业务功能组合在一起,并使用反射及动态编译的方法实现了二者结合点的可定制化,进一步提高了系统的灵活性与可扩展性.通过在仪器设备管理系统中的应用,这种方法取得了良好的效果,具有一定的推广价值.%In order to avoid code scattering and code tangles then improve maintainability and scalahility of system, some functions which were necessary to system but has nothing with the major business, they were sepnrnted and implemented as a separate module. Then they were weaved into key business through static or dynnmic weaving method, combined into a complete system. In this paper, logging together with key business functions were combined together by AOP, reflection and dynamic compilation were used to be customized.Through application in the equipment management system, this method achieves good results, has a potential value.

著录项

相似文献

  • 中文文献
  • 外文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号