登录

  • 登录
  • 忘记密码?点击找回

注册

  • 获取手机验证码 60
  • 注册

找回密码

  • 获取手机验证码60
  • 找回
毕业论文网 > 毕业论文 > 计算机类 > 计算机科学与技术 > 正文

AOP基本原理模拟(Java版)

 2023-03-08 03:03  

论文总字数:18636字

摘 要

面向方面编程(Aspect Oriented Programming, AOP)是一种为了补足面向对象编程(OOP)在跨越不同模块时所存在的劣势而产生的编程方式,它是一种随着编程领域进步而有的产物。在面向对象编程里,由于它主要是对核心关注点的偏重,导致横切关注点有失关注。而实际的业务流程中程序要实现的业务逻辑时常随着使用者的需求发生改变,而且共性的服务模块可能被多个业务流程共享,此时对每个业务流程进行代码修改显然是比较低效的一种工作模式,我们通过AOP来进行工程的维护,通过切面向原业务流程织入,实现新的业务逻辑。

本文对面向方面编程思想进行了详细的讨论,分析系统于横切关注点出现的问题并且提出横切关注点的模块化的思想。本系统的目标就是要采用静态织入方法实现AOP原理的模拟,与标准化静态织入方法不同的是,本文通过窗体可以动态创建并修改切面文件,而且通过鼠标可以选择不同的织入位置,使得同一个切面可以用来构建不同的业务流程,增加了系统的可靠性与泛用性。

关键词: 面向方面编程;模块化;关注点

AOP basic principles of simulation (Java version)

Abstract

Aspect oriented programming is a kind of complement to object oriented programming (OOP) exists across different modules and the disadvantages of programming, it is a kind of progress in the field of programming with some products. In object-oriented programming, due to its emphasis on the core concerns, resulting in crosscutting concerns are not concerned. The business logic program and the actual business processes to achieve often as the user needs change, and the service module may be a common business process sharing, at this time of each business process of code modification is clearly a work mode is inefficient, we use AOP to carry on the project maintenance, through to the original section the business process of weaving, to achieve new business logic.

In this paper, the idea of aspect oriented programming is discussed in detail, and the problem of crosscutting concerns is analyzed. The goal of this system is to adopt static weaving method to realize the simulation of the AOP principle, and standard static weaving methods, this paper forms can dynamically create and modify view files, and can choose different weaving through the mouse position, makes the same cutting surface can be used to build different business processes. To increase the reliability and availability of the system.

Key words: aspect oriented programming; object oriented programming; crosscutting concerns

目录

摘 要 I

Abstract II

第一章 绪论 1

1.1 研究背景 1

1.2 目标和内容 2

1.3 论文结构 3

第二章 相关开发环境和技术介绍 4

2.1 项目开发软件和运行环境 4

2.1.1 开发环境与工具简介 4

2.1.2 Java开发工具 4

2.1.3 开发平台——eclipse 5

2.2 AOP技术介绍 5

第三章 系统设计与实现 7

3.1 需求分析 7

3.1.1系统概述 7

3.1.2 系统功能需求分析 7

3.2 系统业务流程 7

3.3 系统总体设计与实现 8

3.4 系统功能模块和详细设计 8

第四章 系统测试与分析 14

4.1 概述 14

4.2 实现步骤与结果 14

第五章 总结 23

5.1 完成的工作 23

5.2 工作展望 23

致谢 24

参考文献 25

第一章 绪论

1.1 研究背景

通过计算机语言实现现实世界与计算机世界相关联的过程就是软件开发过程。全过程一共分为三步:首先把现实世界中的实际问题建成模型,其次通过编程语言实现编译过程,最后由计算机来执行。结构化程序设计作为最早期的软件开发模式。之所以提出面向对象编程(OOP)的软件开发模式,是因为结构化程序设计的代码重用性低、维护性差、设计复杂等不足无法满足日益复杂的软件需求。OOP作为一种编程语言和设计思想,现如今已经成为软件开发的主要模式,原因是可以使架构和实现大型复杂的项目变得更容易。面向对象设计的魅力在于用人类的思想习惯将现实世界中的实体及其行为映射成对象和功能,并且能够准确地表达出现实世界的实体及其行为,对软件的开发过程具有深刻的意义。另外,面向对象开发让开发的软件更容易修改、维护和扩展;面向对象技术发挥优势也可以通过编写可重复使用代码和可维护代码、对代码模块进行修改、代码共享等。

将现实世界中存在的某些问题简单化,符合人类的思考方式是面向对象设计(OOP)的根本目标。面向对象设计超越结构化程序设计成为当今主流的软件开发模式体现在:

与人类认识和分析事物的思想习惯相符。

数据抽象的概念可以改变内部的实现但是外部接口不变,这样可以避免外界的干扰。

剩余内容已隐藏,请支付后下载全文,论文总字数:18636字

您需要先支付 80元 才能查看全部内容!立即支付

企业微信

Copyright © 2010-2022 毕业论文网 站点地图