类加载器工厂

ClassLoaderFactory

内部类Repository

DIR:表示整个目录下的资源,包括所有Class、Jar包及其他类型资源;

GLOB:所有Jar资源;

JAR:单个Jar资源;

URL:从URL上获取的Jar包资源;

URLClassLoader

This class loader is used to load classes and resources from a search

* path of URLs referring to both JAR files and directories. Any URL that

* ends with a '/' is assumed to refer to a directory. Otherwise, the URL

* is assumed to refer to a JAR file which will be opened as needed.

*

* The AccessControlContext of the thread that created the instance of

* URLClassLoader will be used when subsequently loading classes and

* resources.

*

* The classes that are loaded are by default granted permission only to

* access the URLs specified when the URLClassLoader was created

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容