java Java类加载器教程

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/1673256/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-10-29 17:33:02  来源:igfitidea点击:

Java class loader tutorial

javaclassloader

提问by Yaneeve

Please provide a good, thorough tutorial about Java class loading, focusing on how to extend that mechanism and how to actually work with the extension.

请提供一个关于Java 类加载的好的、全面的教程,重点介绍如何扩展该机制以及如何实际使用该扩展。

回答by Andrzej Doyle

There's obviously Sun's trailwhich gives you the technical foundations. I find that despite being thirteen years old(!) this JavaWorldarticle is still a very good place to start - the technicalities of classloading haven't changed much or at all since then, to my knowledge. (Someone please correct this if there have been any important changes since then!).

很明显,Sun 的踪迹为您提供了技术基础。我发现尽管已经 13 岁了(!),这篇JavaWorld文章仍然是一个很好的起点——据我所知,从那时起,类加载的技术细节没有发生太大变化或根本没有变化。(如果从那时起有任何重要的变化,请有人纠正这一点!)。

IBM are usually good for technical Java articles, and they don't disappointhere. O'Reilly also have a more recent articlethat covers much the same thing but has a pretty diagram in it. :-)

IBM 通常适合技术 Java 文章,它们在这里不会让人失望。O'Reilly 也有一篇更新的文章,涵盖了大致相同的内容,但其中有一个漂亮的图表。:-)

回答by rsp

The Mindprod Java Glossaryhas a good description of what a classloader is and lists tutorials and technical articals at the end of the page.

Mindprod Java的词汇有一个什么样的类加载器和一个很好的说明列出的教程,并在页面的最后技术快速举报通道。