Java动态类加载机制研究及应用  被引量:12

Research and application of Java dynamic class loading mechanism

在线阅读下载全文

作  者:王万森[1] 龚文[1] 

机构地区:[1]首都师范大学信息工程学院,北京100048

出  处:《计算机工程与设计》2011年第6期2154-2158,共5页Computer Engineering and Design

基  金:国家自然科学基金项目(60970052);北京市自然科学基金项目(4112014);北京市教委重点项目暨北京市自然科学基金重点基金项目(kz200810028016)

摘  要:为了在Java应用程序运行期间动态加载类文件,而不影响其它功能模块的正常运行,在Java虚拟机(JVM)机制上给出了Java动态类加载的实现方法。通过对Java类加载器的体系结构,动态类加载机制原理、实现过程和实现方法的分析,在网络教学环境下实现了一个基于C/S结构模式的动态的从数据库中获取Java源代码并编译运行的学生实验教学系统,并结合反射机制为Java作为动态语言提出一种应用的途径,充分展现了Java语言的灵活性、安全性,使它在代码安全保护和网络环境下有广阔应用前景。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. Analyzing Java classloader architecture, theory ofdynamic class loading mechanism, implementation process and method, we developed a student experiment teaching system based on C/S model in the network teaching environment, which dynamically accesses Java source code from database, then compile and run it, a application method of Java as dynamic language with reflection mechanism and demonstrating the flexibility, security of Java is proposed, which used in code protection and the context of network, a broad application prospects.

关 键 词:JAVA虚拟机 类加载器 委托模型 动态类加载机制 实验教学系统 

分 类 号:TP312[自动化与计算机技术—计算机软件与理论]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象