Revision 42774 trunk/org.gvsig.desktop/org.gvsig.desktop.framework/org.gvsig.andami/src/main/java/org/gvsig/andami/plugins/PluginClassLoader.java
PluginClassLoader.java | ||
---|---|---|
35 | 35 |
import java.security.PermissionCollection; |
36 | 36 |
import java.util.ArrayList; |
37 | 37 |
import java.util.Arrays; |
38 |
import java.util.Collections; |
|
38 | 39 |
import java.util.Enumeration; |
39 | 40 |
import java.util.HashMap; |
40 | 41 |
import java.util.HashSet; |
... | ... | |
383 | 384 |
|
384 | 385 |
return null; |
385 | 386 |
} |
387 |
|
|
388 |
@Override |
|
389 |
public Enumeration<URL> getResources(String name) throws IOException { |
|
390 |
List<URL> resources = new ArrayList<>(); |
|
391 |
Enumeration<URL> aux = super.getResources(name); |
|
392 |
while(aux.hasMoreElements()){ |
|
393 |
URL url = aux.nextElement(); |
|
394 |
resources.add(url); |
|
395 |
} |
|
396 |
for(PluginClassLoader loader: this.pluginLoaders){ |
|
397 |
aux = loader.getResources(name); |
|
398 |
while(aux.hasMoreElements()){ |
|
399 |
URL url = aux.nextElement(); |
|
400 |
resources.add(url); |
|
401 |
} |
|
402 |
} |
|
403 |
|
|
404 |
return Collections.enumeration(resources); |
|
405 |
} |
|
386 | 406 |
|
387 | 407 |
/** |
388 | 408 |
* Returns the name of the plugin (the name of the directory containing the |
Also available in: Unified diff