量和稳健性。 面向方面技术在JAVA环境下已经被成功应用,但在NET环境中,还没有 成熟的AOP产品,特别是对于异常的处理还很薄弱。本文结合AOP的基本理 论,分析AOP技术的核心要点,在.NET环境中加以实现:着重研究了基于.NET
Framework环境下的异常处理,并对AOP关键环节——业务功能的监视和横切
关注点的织入,进行研究并加以实现,从而提高了系统的稳健性和安全性。本文 的主要工作如下: (1)提出了基于.NET的AOP基本框架。结合AOP的概念和模型,采
用.NET Remoting的分布式处理技术实施函数消息的监视与拦截:为横切关注点
的织入提供接口。 (2)提出了灵活的运行时动态载入方案。采用XML格式配置文件和.NET Framework的反射技术,动态晚绑定横切关注点所在的方面类,为织入过程提 供更灵活的处理方式。从而完全分解了系统的开发过程,采用本文生成的方面管 理器,实现了新的对功能模块的组织管理模式。 (3)提出了跨程序域的异常解决方案。在AOP创建新的异常抛出,捕获, 处理机制,为用户提供权限创建新的异常标识和异常判断功能,同时解决异常跨 程序域的问题,从而提高系统的容错性。 关键词:横切,关注点,方面,面向方面,面向对象
江苏大学硕士学位论文
Abstract
In order to solve the problems such and extension
in
as
confusion code.poor consistency Programming pattern for
traditional
Object—Oriented
systematic public functions.Aspect-Oriented PrOgramming is created
AOP
establises better management pattern for the code,flexible method to upgrade and expand the system,accelerating
no
the
development
of
software
and
increasing its quality.Now.there is
perfectAOP product in.NET enviroment
According to the fundamental requirement and developing trend of AOP,I analyze the
core
technology for AOP and implement the light AOP framework multi modules in the
which separates the systematic function cross—curing system Focusing
on
the basic theory and key point一--supe
mise systemaitc method
and weave CROSS—cutting concern,the chief production and contribution of the file include:
(1)Create
when
the prime AOP framework.supewise and interce-pt the method with NET Remoting Create the standard interface for
invoked
cross—cutting
concern.
(2)Suppod
cross?cutting
late—binding
loading
dynamically
solution
Late
bind
concerns
dynamically according to XML configuration file and
Reflection in.NET Framework.Disassemble the developing process for the system.It is available for the new management pattern for new function
modules with the aspect manager in the file
(3)Add
exception handling solution which offer the
user error
to create custom tolerance of the
functions for
error-judge
and error-processing.and the
systom is increased.
Key
word:cross—cutting。concern,aspect,AOP,OOP
Yil01391s
学位论文版权使用授权书
本学位论文作者完全了解有关保留、使用学位论文的规定,同
意保留并向国家有关部门或机构送交论文的复印件和电子版,允许 论文被查阅和借阅。本人授权江苏大学可以将本学位论文的全部内容或
部分内容编入有关数据库进行检索,可以采用影印、缩印或扫描等复制
手段保存和汇编本学位论文。
保密口,在
年解密后适用本授权书。
本学位论文属于
不保密wf
学位论文作者签名:寐蛳
≥c7口6年自