/** Augment the package name associated with a UCL. * @param url the URL to parse for package names * @param listener the listener * @throws Exception */ public static void updatePackageMap(URL url, PkgNameListener listener) throws Exception { ClassPathIterator cpi = new ClassPathIterator(url); updatePackageMap(cpi, listener); }
/** Augment the package name associated with a UCL. * @param cl the UCL that loads from url * @param packagesMap the Map<cl, String[]> to update * @param url the URL to parse for package names * @param prevPkgNames the set of pckage names already associated with cl * @return the updated unique set of package names * @throws Exception */ public static void updatePackageMap(URL url, PkgNameListener listener) throws Exception { ClassPathIterator cpi = new ClassPathIterator(url); updatePackageMap(cpi, listener); }
/** Walk through the new URL to update the packages the ClassLoader is * capable of handling */ private void updatePackageMap(RepositoryClassLoader cl, URL url) { try { PackageMapper listener = new PackageMapper(cl); ClassLoaderUtils.updatePackageMap(url, listener); } catch (Exception e) { if (log.isTraceEnabled()) log.trace("Failed to update pkgs for cl=" + cl, e); else log.debug("Failed to update pkgs for cl=" + cl, e); } }
/** Walk through the new URL to update the packages the ClassLoader is * capable of handling */ private void updatePackageMap(RepositoryClassLoader cl, URL url) { try { PackageMapper listener = new PackageMapper(cl); ClassLoaderUtils.updatePackageMap(url, listener); } catch (Exception e) { if (log.isTraceEnabled()) log.trace("Failed to update pkgs for cl=" + cl, e); else log.debug("Failed to update pkgs for cl=" + cl, e); } }
/** Walk through the class loader URL to see what packages it is capable of handling */ private void updatePackageMap(RepositoryClassLoader cl) { try { URL url = cl.getURL(); PackageMapper listener = new PackageMapper(cl); ClassLoaderUtils.updatePackageMap(url, listener); } catch (Exception e) { if (log.isTraceEnabled()) log.trace("Failed to update pkgs for cl=" + cl, e); else log.debug("Failed to update pkgs for cl=" + cl+", "+e.getMessage()); } }
/** Walk through the class loader URL to see what packages it is capable of handling */ private void updatePackageMap(RepositoryClassLoader cl) { try { URL url = cl.getURL(); PackageMapper listener = new PackageMapper(cl); ClassLoaderUtils.updatePackageMap(url, listener); } catch (Exception e) { if (log.isTraceEnabled()) log.trace("Failed to update pkgs for cl=" + cl, e); else log.debug("Failed to update pkgs for cl=" + cl+", "+e.getMessage()); } }