Class URLClassLoader
博客专区 > Oscarfff 的博客 > 博客详情
Class URLClassLoader
Oscarfff 发表于2年前
Class URLClassLoader
  • 发表于 2年前
  • 阅读 12
  • 收藏 0
  • 点赞 1
  • 评论 0

腾讯云 十分钟定制你的第一个小程序>>>   

摘要: Class URLClassLoader。
public class URLClassLoaderextends SecureClassLoaderimplements Closeable

###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.


共有 人打赏支持
粉丝 70
博文 789
码字总数 96562
×
Oscarfff
如果觉得我的文章对您有用,请随意打赏。您的支持将鼓励我继续创作!
* 金额(元)
¥1 ¥5 ¥10 ¥20 其他金额
打赏人
留言
* 支付类型
微信扫码支付
打赏金额:
已支付成功
打赏金额: