protected void doGetResources(String name, Set<URL> urls) throws IOException { super.getResources(name, urls); }
public void getResources(String name, Set<URL> urls) throws IOException { boolean trace = log.isTraceEnabled(); if (filter.matchesResourcePath(name)) { if (trace) log.trace(this + " " + name + " matches filter=" + filter); super.getResources(name, urls); } if (trace) log.trace(this + " " + name + " does NOT match filter=" + filter); }
@Override protected void doGetResources(String name, Set<URL> urls) throws IOException { DelegateLoader loader = resolve(ClassLoaderUtils.getResourcePackageName(name)); if (loader != null) { loader.getResources(name, urls); } }
/** * Load resources from the imports * * @param info the classloader info * @param name the resource name * @param urls the urls to add to * @param trace whether trace is enabled * @throws IOException for any error */ void getResourcesFromImports(ClassLoaderInformation info, String name, Set<URL> urls, boolean trace) throws IOException { List<? extends DelegateLoader> delegates = info.getDelegates(); if (delegates == null || delegates.isEmpty()) { if (trace) log.trace(this + " not getting resource " + name + " from imports it has no delegates"); return; } if (trace) log.trace(this + " trying to get resources " + name + " from imports " + delegates + " for " + info.getClassLoader()); for (DelegateLoader delegate : delegates) delegate.getResources(name, urls); }
/** * Load resources from the imports * * @param info the classloader info * @param name the resource name * @param urls the urls to add to * @param type the import type * @param trace whether trace is enabled * @throws IOException for any error */ // FindBugs: The Set doesn't use equals/hashCode void getResourcesFromImports(ClassLoaderInformation info, String name, Set<URL> urls, ImportType type, boolean trace) throws IOException { List<? extends DelegateLoader> delegates = info.getDelegates(type); if (delegates == null || delegates.isEmpty()) { if (trace) log.trace(this + " not getting resource " + name + " from imports it has no delegates"); return; } if (trace) log.trace(this + " trying to get resources " + name + " from imports " + delegates + " for " + info.getClassLoader()); for (DelegateLoader delegate : delegates) delegate.getResources(name, urls); }