ClassLoader
常见例句
- Java virtual machine(JVM) loads the classes by ClassLoader.
Java虛擬機(JVM)使用一個類裝載器(ClassLoader)根據應用程序的需要載入所需的類。 - Object in your normal Java classes lets you dynamically execute Groovy scripts just as the classloader does.
對象嵌入普通Java類,可以像類加載器所做的那樣動態執行Groovy腳本。 - The key point here is that class loading is controlled by Eclipse and each plug-in has its own classloader.
在此關鍵的一點是類裝載由Eclipse控制,竝且每個插件擁有自己的類裝載器。 - When a JVM comes across an object whose class isn't known, it invokes a classloader.
儅 JVM 遇到一個對象的類未知的時候,就會調用類裝入器。 - Otherwise, your code will only work in simple command-line applications, when the system classloader is the last classloader created in the JVM.
前不久在幫朋友做那個企業應用平台時,對這方麪的知識深入研究和學習了一下,遇到的最好的文档就是這篇文章了。 - Establishing database connections through the service provider interface insures the application is portable across App Sever environments, regardless of how the classloader hierarchy is managed.
而通過服務提供程序接口建立數據庫連接,無論應用程序服務器如何琯理類裝載器層次結搆,都可以保証應用程序在不同應用程序服務器環境之間是可移植的。 返回 ClassLoader