首页 | 本学科首页   官方微博 | 高级检索  
     

Java动态类加载机制分析及其应用
引用本文:崔行臣,赵佟.Java动态类加载机制分析及其应用[J].计算机系统应用,2013,22(7):187-191.
作者姓名:崔行臣  赵佟
作者单位:山东广播电视大学 现代教育技术中心, 济南 250014;山东广播电视大学 现代教育技术中心, 济南 250014
摘    要:Java 虚拟机(JVM)中的类加载机制可以在 Java 应用程序运行期间动态加载类文件, 而不影响其它功能模块的正常运行. 通过对 Java 类加载器的层次体系结构, 动态类加载机制原理、实现过程进行分析, 将Java动态类加载机制应用到高校网站管理平台的文件发布模块中, 使得设计好的静态网页和后台管理系统相关联, 通过自定义加载器来加载加密过的Java类文件. 这样以可插拔的方式快速的部署二级网站, 增强了网站管理平台的灵活性和可扩展性.

关 键 词:Java虚拟机  类加载器  委托模型  动态类加载机制
收稿时间:2012/12/26 0:00:00
修稿时间:2013/1/21 0:00:00

Java Dynamic Class Loading Mechanism Analysis and Its Application
CUI Xing-Chen and ZHAO Tong.Java Dynamic Class Loading Mechanism Analysis and Its Application[J].Computer Systems& Applications,2013,22(7):187-191.
Authors:CUI Xing-Chen and ZHAO Tong
Affiliation:Center for Educational Technology, Shandong Radio & TV University, Jinan 250014, China;Center for Educational Technology, Shandong Radio & TV University, Jinan 250014, China
Abstract:In order to load Java class file during the Java application runtime and without affecting the normal operation of other functional modules, the realization of Java dynamic class loading method is given based on the java virtual machine (JVM) mechanism. Java Class Loader architecture, theory of dynamic class loading mechanism, the implementation process are analyzed, and which are applied to the file release module of web site management platform system. The file release module is designed to make static web pages and website management system linked. Through the custom loader to loading encryption of Java class files. In a hot swap way to implement the deployment of secondary website, enhance the site management platform's flexibility and expansibility.
Keywords:Java virtual machine  class loader  delegation model  dynamic class loading mechanism
点击此处可从《计算机系统应用》浏览原始摘要信息
点击此处可从《计算机系统应用》下载全文
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号