节点文献
动态AOP架构在JMX可扩展服务器上的设计与实现
【作者】 张俐佳;
【导师】 唐雪飞;
【作者基本信息】 电子科技大学 , 计算机应用技术, 2005, 硕士
【摘要】 在软件技术的研究中,AOP 以其对横切封装的特性改善了OOP 中的代码冗余以及代码分散等缺陷,逐渐成为新一代的程序设计思想。而AOP 架构的实现更成为了AOP 技术中研究的热点和重点。在静态AOP 架构日趋成熟的同时,对于动态的AOP 架构尚没有实现的规范。另一方面对于中间件架构来讲,多变的分布式应用对于中间件系统的自适应性提出了更高的要求。动态AOP 架构对于增强原中间件架构在动态性和可扩展性方面的实现起到重要作用。因此,我们设计了一种动态AOP 架构,提出设计的规范。将它整合于原中间件架构中,以满足更高的可适应性要求。第二章深入AOP 实现架构的研究。在Aspect 元素的表示以及交织的实现两方面对静态AOP 架构以及动态模拟AOP 架构进行研究。在总结两类AOP 架构特征的基础上,提出了一种AOP 架构特征。根据这一特征,构建了基于ACCM可扩展服务器之上的动态AOP 初步架构,论述其设计中的重点。第三章进一步设计AOP 架构。包括Aspect 内部组成元素的设计以及系统模型设计。整个AOP 架构模型分为: Aspect 交织模块和与可扩展服务器交互的Aspect 部署器、Aspect 管理器。核心在于交织模块的设计中代码织入方式的选择。根据这种织入方式,所设计交织模块实现模型分为:编制器、字节码修改器、类Aspect 管理器以及实例Aspect 管理器四个部分。第四章实现动态AOP 框架并在服务器中的加载动态AOP 框架。首先介绍了Java 语言自身对动态编程方面的支持。详细描述了四种Pointcut 交织实现过程,交织模块中的各个部分的结构以及实现接口。最后根据可扩展服务器的要求,实现了动态AOP 框架组件在服务器上的部署。第五章为全文总结,包括:工作总结、系统特点以及下一步的工作。
【Abstract】 AOP captures the structure of crosscutting concern explicitly. It preventsphenomena of code tangling and code redundancy in OOP and becomes a popularsoftware development technique. In the research of AOP implementation the dynamicAOP architecture still has no criterions. Meanwhile the changeful requirements ofdistributed application enforce more challenge on the design of adaptive middleware.And the implementation of dynamic AOP is a useful way to manage it.In Chapter2 first I have taken research on several AOP implementationarchitectures. In the aspect of the Aspect element’s design and the weaving method,we hava taken deep research on 2 categories of AOP architecture. The newcharacteristic of AOP architecture is made up by summarizing the characteristic of thefirst two. Then we apply the characteristic into the design of the dynamic AOParchitecture based on ACCM extensive application server.In Chapter3 I take the deep research into design of the DAOP. It’s composed ofthe design of Aspect element and the system model. The total model of DAOP is bringforward. My job is to design the kernel—Aspect weaving model. The model design isdepending on the choice of hook weaving method. Aspect weaving model is made upof four parts: Instrumentor, Bytecodetransformer, ClassAdvisor andInstanceClassAdvisor.In Chapter4 I implement the DAOP architecture in ACCM. First, I introduce thedynamics of java programming, then I analyse the three phases in the implementationprocess for four kinds of Pointcuts. At last we deploy the DAOP components into theserver.In Chapter5 we summarize our work and the characters of the system. And thework should be expanded farther more.
- 【网络出版投稿人】 电子科技大学 【网络出版年期】2005年 07期
- 【分类号】TP311.52
- 【下载频次】124