本文整理汇总了Java中org.insightech.er.util.URLFirstClassLoader类的典型用法代码示例。如果您正苦于以下问题:Java URLFirstClassLoader类的具体用法?Java URLFirstClassLoader怎么用?Java URLFirstClassLoader使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
URLFirstClassLoader类属于org.insightech.er.util包,在下文中一共展示了URLFirstClassLoader类的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getClassLoader
import org.insightech.er.util.URLFirstClassLoader; //导入依赖的package包/类
public static ClassLoader getClassLoader() {
ClassLoader currentClassLoader = ERDiagramActivator.class
.getClassLoader();
String path = PreferenceInitializer.getExtendedClasspath();
if (!Check.isEmpty(path)) {
URL[] urls = new URL[1];
try {
urls[0] = new File(path + "/").toURI().toURL();
URLFirstClassLoader classLoader = new URLFirstClassLoader(urls,
currentClassLoader);
return classLoader;
} catch (MalformedURLException e) {
}
}
return currentClassLoader;
}
示例2: getClassLoader
import org.insightech.er.util.URLFirstClassLoader; //导入依赖的package包/类
public static ClassLoader getClassLoader() {
final ClassLoader currentClassLoader = ERDiagramActivator.class.getClassLoader();
final String path = PreferenceInitializer.getExtendedClasspath();
if (!Check.isEmpty(path)) {
final URL[] urls = new URL[1];
try {
urls[0] = new File(path + "/").toURI().toURL();
final URLFirstClassLoader classLoader = new URLFirstClassLoader(urls, currentClassLoader);
return classLoader;
} catch (final MalformedURLException e) {}
}
return currentClassLoader;
}