面向切面编程(Aspect-Oriented Programming,简称AOP)作为一种新的编程技术正日益引起人们的关注.文章介绍了AOP产生背景和理论价值,并结合作者所设计的状态机工作流框架,详细讨论了如何通过在该框架中引入AOP机制来克服纯面向对象编程的不足,从中分析了AOP的优势和应用价值,最后对AOP和OOP的关系进行了讨论.
Aspect-Oriented Programming is a technique for separation of crosscutting concerns. With AOP applied, a model of workflow state machine is introduced in details, eliminating the disadvantages that OOP inherits. Meanwhile, the relationship between OOP and AOP is also discussed in this paper.