网站大量收购独家精品文档,联系QQ:2885784924

基于反射机制的框架研究与实现毕业论文.doc

基于反射机制的框架研究与实现毕业论文.doc

  1. 1、本文档共39页,可阅读全部内容。
  2. 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
毕业论文 基于反射机制的框架研究与实现 RESEARCH AND IMPLEMENTATION OF THE FRAMEWORK BASED ON REFLECTION 专    业: 信息与计算科学 指导教师姓名: 申请学位级别: 学士 论文提交日期: 摘 要 目前,随着互联网应用的快速发展,软件运行环境正从一个集中封闭计算的平台走向开放、动态的计算平台,并且基于服务的计算模式将逐渐取代它,因此这些变化传统软构件技术应对起来很困难。本文针对目前框架复用程度不高,无法适应动态运行环境和多变用户需求这些问题,基于反射理论,研究具有灵活性和自适应性的框架。框架具有减少代码冗余,提高运行速度,便于维护,规范编程等优点。 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, these 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. JAVA 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. JAVA reflection mechanism can check the properties of certain methods in information, and invoke dynamically

文档评论(0)

追风少年 + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

1亿VIP精品文档

相关文档