美文网首页
类加载器工厂

类加载器工厂

作者: sherlock_6981 | 来源:发表于2018-04-10 15:07 被阅读0次

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

相关文章

网友评论

      本文标题:类加载器工厂

      本文链接:https://www.haomeiwen.com/subject/brcnhftx.html