ClassLoader
常見例句
- Java virtual machine(JVM) loads the classes by ClassLoader.
Java虛擬機(jī)(JVM)使用一個類裝載器(ClassLoader)根據(jù)應(yīng)用程序的需要載入所需的類。 - Object in your normal Java classes lets you dynamically execute Groovy scripts just as the classloader does.
對象嵌入普通Java類,可以像類加載器所做的那樣動態(tài)執(zhí)行Groovy腳本。 - The key point here is that class loading is controlled by Eclipse and each plug-in has its own classloader.
在此關(guān)鍵的一點是類裝載由Eclipse控制,并且每個插件擁有自己的類裝載器。 - When a JVM comes across an object whose class isn't known, it invokes a classloader.
當(dāng) JVM 遇到一個對象的類未知的時候,就會調(diào)用類裝入器。 - Otherwise, your code will only work in simple command-line applications, when the system classloader is the last classloader created in the JVM.
前不久在幫朋友做那個企業(yè)應(yīng)用平臺時,對這方面的知識深入研究和學(xué)習(xí)了一下,遇到的最好的文檔就是這篇文章了。 - 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.
而通過服務(wù)提供程序接口建立數(shù)據(jù)庫連接,無論應(yīng)用程序服務(wù)器如何管理類裝載器層次結(jié)構(gòu),都可以保證應(yīng)用程序在不同應(yīng)用程序服務(wù)器環(huán)境之間是可移植的。 返回 ClassLoader