mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[platform] a couple more parallel-capable class loaders
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2000-2013 JetBrains s.r.o.
|
||||
* Copyright 2000-2016 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -25,9 +25,11 @@ import java.util.Set;
|
||||
|
||||
/**
|
||||
* @author Eugene Zhuravlev
|
||||
* Date: Oct 21, 2008
|
||||
* @since Oct 21, 2008
|
||||
*/
|
||||
public class AntResourcesClassLoader extends UrlClassLoader {
|
||||
static { registerAsParallelCapable(); }
|
||||
|
||||
private final Set<String> myMisses = new THashSet<String>();
|
||||
|
||||
public AntResourcesClassLoader(final List<URL> urls, final ClassLoader parentLoader, final boolean canLockJars, final boolean canUseCache) {
|
||||
@@ -56,4 +58,4 @@ public class AntResourcesClassLoader extends UrlClassLoader {
|
||||
throw e;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2000-2014 JetBrains s.r.o.
|
||||
* Copyright 2000-2016 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -155,6 +155,8 @@ public final class LoaderFactory {
|
||||
}
|
||||
|
||||
private static class DesignTimeClassLoader extends UrlClassLoader {
|
||||
static { registerAsParallelCapable(); }
|
||||
|
||||
private final String myModuleName;
|
||||
|
||||
public DesignTimeClassLoader(final List<URL> urls, final ClassLoader parent, final String moduleName) {
|
||||
@@ -167,4 +169,4 @@ public final class LoaderFactory {
|
||||
return "DesignTimeClassLoader:" + myModuleName;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user