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
网友评论