首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > Java > 允许在运行时发现类的库

允许在运行时发现类的库

  • 资源大小:14.32 kB
  • 上传时间:2021-06-30
  • 下载次数:0次
  • 浏览次数:1次
  • 资源积分:1积分
  • 标      签: 运行 发现 允许

资 源 简 介

Library which allows discovering classes at runtime. In Java one can use ClassLoader.getResourceAsInputStream(resource); to load the data from the CLASS_PATH provided that you know the name of the resource. This library allows you to discover what Java packages and classes are available at runtime. ClassPathFactory factory = new ClassPathFactory();ClassPath classPath = factory.createFromJVM();for (String packageName : classPath.listPackages("")) { System.out.println(packageName);} http://misko.hevery.com/about
VIP VIP
  • 大智若愚 2小时前 成为了本站会员

  • Mason 5小时前 成为了本站会员

  • 5小时前 成为了本站会员

  • Half_Punch 1天前 成为了本站会员

  • liqing71718 1天前 成为了本站会员

  • 伟国 1天前 成为了本站会员

  • songy 1天前 成为了本站会员

  • 纯色幽默 1天前 成为了本站会员

  • odd? 1天前 成为了本站会员

  • 52JOY... 1天前 成为了本站会员

0.175520s