摘要
面向方面编程作为一种基于关注分离的软件开发思想,抽取出软件的功能性和非功能性属性,并引入实现横切关注点的方面,以织入的方式完成系统集成。然而面向方面编程方法只体现在软件生命周期的编码阶段,而缺少在设计阶段的支持。通过分析面向方面编程的概念及其特点,利用UML的扩展机制将方面加入状态图中,给出基于AspectJ语法语义扩展UML的状态模型,实现状态图方面与核心组件之间的织入关系,最终实现代码自动生成。
As a new software development paradigm, AOP is based on separation of concerns, introduces aspects to achieve crosscutting concerns, and extracts the software functional and non-functional properties to weaving the integration of the system. However, AOP embodied only in the encoding stage of software life cycle but lack of supporting at the design stage. This article analyzes AOP concepts and characteristics, using UML's extension mechanisms to join the state diagram in terms, given the state model with UML extension mechanism based on AspectJ semantic and syntax, achieving the weaving of state diagram and the core components, and ultimately code automatically generated.
出处
《计算机技术与发展》
2011年第1期116-119,共4页
Computer Technology and Development
基金
国家自然科学基金项目(60474072Z)
广东省自然科学基金项目(07001774)