摘要: 这篇文章是从《Inside Java Virtual Machine(深入java虚拟机)》这本书中摘录的,里面对这一章节主要讲的是java类装载器的体系结构,讲的挺好的。In Java's sandbox, the class loader architecture is the first line of defense. It is the class loader, after all, that brings code into the Java virtual machine--code that could be hostile or buggy. The class l 阅读全文
posted @ 2011-12-05 12:56 xwdreamer 阅读(407) 评论(0) 推荐(0) 编辑
摘要: 参考文献原文:http://www.cnblogs.com/liuyang-1037/archive/2009/03/26/1422254.html1.Configuration: 负责管理Hibernate的配置信息,这些配置信息都是从配置文件hibernate.cfg.xml或者Hibernate.properties读取的,当然也可以自定义文件名称,只要在实例化Configuration的时候指定具体的路径就可以了;2.SessionFactiory: Configuration的实例会根据当前的配置信息,构造SessionFactory实例。SessionFactory是线程安全的.. 阅读全文
posted @ 2011-12-05 11:17 xwdreamer 阅读(4037) 评论(0) 推荐(0) 编辑
摘要: 参考文献:http://blog.csdn.net/shixin1198/article/details/37339481.使用概要:File file = new File(jar文件全路径); URL url = file.toURL(); URLClassLoader loader = new URLClassLoader(new URL[] { url }); Class tidyClazz = loader.loadClass(所需class的含包名的全名); 2.详细说明:我们知道,Java利用ClassLoader将类载入内存,并且在同一应用中,可以有很多个ClassLoader 阅读全文
posted @ 2011-12-05 01:03 xwdreamer 阅读(11240) 评论(0) 推荐(0) 编辑