摘要
分析了常见代码规则强化方法中存在的问题,结合AOP(Aspect-Oriented Programming,简称AOP)的特点,给出了一种基于AOP的代码规则强化方法,并用方面来表示代码规则,通过把代码规则织入系统代码,在编译阶段和运行阶段实现了代码规则强化。
The problems of some common ways to enforce code rules and the features of AOP (aspect-oriented programming) are analyzed, and a new way based on AOP is proposed. This way expresses code rules with aspects, and implements enforcement of code rules in compile phase and runtime phase by weaving code rules into system codes.
出处
《计算机工程与设计》
CSCD
2004年第11期1985-1987,共3页
Computer Engineering and Design