第三章系统开发环境技术介绍第一节...

基于反射机制框架研究与实现RESEARCH AND IMPLEMENTATION OF THE FRAMEWORK BASED ON
REFLECTION
打印机共享器专业:2010信息与计算科学
指导教师姓名:
申请学位级别:学士
论文提交日期:2014年6月12日
摘要
目前,随着互联网应用的快速发展,软件运行环境正从一个集中封闭计算的
平台走向开放、动态的计算平台,并且基于服务的计算模式将逐渐取代它,因此这些变化传统软构件技术应对起来很困难。本文针对目前框架复用程度不高,无法适应动态运行环境和多变用户需求这些问题,基于反射理论,研究具有灵活性和自适应性的框架。框架具有减少代码冗余,提高运行速度,便于维护,规范编程等优点。
Java反射机制是在运行状态当中,对于任何一个类,都可以知道这个类的所有属性及方法;对于任何一个对象,都能够调用它的一个方法及属性;这种动态获取信息和动态调用对象方法的功能称为Java语言的反射机制。反射其实就是程序可以对自身信息进行检查。在程序中能够检查某类中的方法属性等信息,而且能够动态调用。这样就能够写出很灵活的程序。例如想要把一个对象中属性名相同的数据复制到另外一个对象中,就可以利用反射,而且不需要指定每个属性名字,只需要动态从类中获取信息,再判断属性名是否相同就可以了。
本课题旨在基于反射机制对框架进行研究,实现一个轻量级的框架以此来适应小的系统。轻量J2EE应用是对经典J2EE 应用的简化,在保留经典J2EE应用的架构、良好的可扩展性、可维护性的基础上,简化了J2EE应用的开发,降低了J2EE应用的成本。
关键词:反射机制;轻量级;框架
ABSTRACT
Currently, with the rapid development of Internet applications, software
operating environment is moving from a centralized closed computing platform to an open and dynamic computing platform, service-based computing model will gradually replace it, therefore, thes
经济新常态的要求
e changes traditional software component technology is very difficult to deal with. In this article, For these issues about current software component repeated utilization is not high, dynamic operating environment cannot meet and the changing needs of users, according to the theory of reflection, this article researches a software component technology which is high flexibility and adaptability. The framework is with the advantages of reducing code redundancy, improving the speed, ease of maintenance, standardized programming and so on.
JA VA reflection can know all the properties and methods of any one class in running them; For any object, it is able to call one of its methods and properties; The function of accessing to information dynamically and calling object method dynamically is called reflection mechanism of java language. Actually, reflection is a program can check the information on their own. JA VA reflection mechanism can check the properties of certain methods in information, and invoke dynamically. This makes it possible to write a very flexible program. For example, someone wants to copy an object attribute with the same name as the data to another, he can use reflection, without needing to specify the name of each attribute, only need to get information from a dynamic class, and then determine whether the same property name on it .
This article is based on researching the reflection mechanism framework, achieving a lightweight fra
mework in order to adapt to the small system. Application of Lightweight J2EE is simplified by classic J2EE, On the basis of retaining the classic application architecture, good scalability, and good maintainability, it Simplifies application development and reduces application costs.
Key words: Reflection; lightweight; framework
目录
第一章绪论 (1)
红丝带网第一节论文的背景 (1)
第二节论文研究目标 (1)
第二章相关概念以及概念之间的关系 (2)
第一节反射机制 (2)
刘庆宁
第二节轻量级 (2)
第三节设计模式简介 (2)
第四节框架 (3)
第五节架构 (4)
第六节框架与架构关系 (4)
氧化镍第七节框架与设计模式关系 (4)
第三章系统开发环境技术介绍 (6)
第一节MyEclipse介绍 (6)
第二节MySQL数据库介绍 (6)
第四章框架研究 (8)
第一节Struts2框架 (8)
第二节Spring框架 (8)
少年军校活动被写入哪部法律第三节Hibernate框架 (9)
第四节Java优点 (10)
第五章框架与数据库连接工具 (12)
第一节JDBC介绍 (12)
第二节连接池 (13)
第三节几种常见的连接池 (14)
第六章建立数据库 (17)
第一节数据库表的结构 (17)
第二节创建数据库部分代码及结果 (17)
第七章基于反射机制框架的设计与实现 (19)
第一节框架的总体设计 (19)
第二节具体代码介绍 (20)
第三节代码测试 (22)
第八章论文总结与展望 (30)
第一节本文总结 (30)
第二节未来展望 (30)
参考文献 (31)
致谢 (32)

本文发布于:2024-09-21 21:54:35,感谢您对本站的认可!

本文链接:https://www.17tex.com/xueshu/422957.html

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。

标签:框架   反射   动态   机制   应用   运行
留言与评论(共有 0 条评论)
   
验证码:
Copyright ©2019-2024 Comsenz Inc.Powered by © 易纺专利技术学习网 豫ICP备2022007602号 豫公网安备41160202000603 站长QQ:729038198 关于我们 投诉建议