use of org.mule.runtime.module.artifact.internal.util.JarExplorer in project mule by mulesoft.
the class IsolatedClassLoaderFactory method getLibraryPackages.
private JarInfo getLibraryPackages(List<URL> libraries) {
Set<String> packages = new HashSet<>();
Set<String> resources = new HashSet<>();
final JarExplorer jarExplorer = new FileJarExplorer();
for (URL library : libraries) {
try {
JarInfo jarInfo = jarExplorer.explore(library.toURI());
packages.addAll(jarInfo.getPackages());
resources.addAll(jarInfo.getResources());
} catch (URISyntaxException e) {
throw new MuleRuntimeException(e);
}
}
return new JarInfo(packages, resources);
}
Aggregations