- Timestamp:
- 2018-09-09T18:47:15+02:00 (6 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/plugins
- Files:
-
- 1 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/plugins/PluginClassLoader.java
r14232 r14234 3 3 4 4 import java.net.URL; 5 import java.net.URLClassLoader;6 5 import java.util.ArrayList; 7 6 import java.util.Arrays; … … 18 17 * @since 12322 19 18 */ 20 public class PluginClassLoader extends URLClassLoader {19 public class PluginClassLoader extends DynamicURLClassLoader { 21 20 22 21 private final Collection<PluginClassLoader> dependencies; -
trunk/src/org/openstreetmap/josm/plugins/PluginHandler.java
r14186 r14234 18 18 import java.net.MalformedURLException; 19 19 import java.net.URL; 20 import java.net.URLClassLoader;21 20 import java.security.AccessController; 22 21 import java.security.PrivilegedAction; … … 249 248 250 249 /** 251 * ClassLoader that makes the addURL method of URLClassLoader public.252 *253 * Like URLClassLoader, but allows to add more URLs after construction.254 */255 public static class DynamicURLClassLoader extends URLClassLoader {256 257 /**258 * Constructs a new {@code DynamicURLClassLoader}.259 * @param urls the URLs from which to load classes and resources260 * @param parent the parent class loader for delegation261 */262 public DynamicURLClassLoader(URL[] urls, ClassLoader parent) {263 super(urls, parent);264 }265 266 @Override267 public void addURL(URL url) {268 super.addURL(url);269 }270 }271 272 /**273 250 * List of unmaintained plugins. Not really up-to-date as the vast majority of plugins are not maintained after a few months, sadly... 274 251 */
Note:
See TracChangeset
for help on using the changeset viewer.