forked from Jossc/JavaCode
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage-info.java
More file actions
25 lines (25 loc) · 1013 Bytes
/
package-info.java
File metadata and controls
25 lines (25 loc) · 1013 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
/**
* 内部分享的一些知识点
*public Launcher()
* {
* ExtClassLoader localExtClassLoader;
* try
* { //(1)首先创建了ExtClassLoader
* localExtClassLoader = ExtClassLoader.getExtClassLoader();
* }
* catch (IOException localIOException1)
* {
* throw new InternalError("Could not create extension class loader");
* }
* try
* { //(2)然后以ExtClassloader作为父加载器创建了AppClassLoader
* this.loader = AppClassLoader.getAppClassLoader(localExtClassLoader);
* }
* catch (IOException localIOException2)
* {
* throw new InternalError("Could not create application class loader");
* } //(3)这个是个特殊的加载器后面会讲到,这里只需要知道默认下线程上下文加载器为appclassloader
* Thread.currentThread().setContextClassLoader(this.loader);
* }
*/
package com.share;