/** * Finds the resource wiht the specified name. * This handles Multi-Release searching also. * @param name the resource name * @param m the module this classpath entry is for * @param index the index this classpath entry. * @return the resource URL or {@code null} if the resource does not exist. */ public URL findResource(String name, Module m, int index) { for (BundleFile mrFile : mrBundleFiles) { URL mrURL = mrFile.getResourceURL(name, m, index); if (mrURL != null) { return mrURL; } } return bundlefile.getResourceURL(name, m, index); }
/** * Finds the resource wiht the specified name. * This handles Multi-Release searching also. * @param name the resource name * @param m the module this classpath entry is for * @param index the index this classpath entry. * @return the resource URL or {@code null} if the resource does not exist. */ public URL findResource(String name, Module m, int index) { for (BundleFile mrFile : mrBundleFiles) { URL mrURL = mrFile.getResourceURL(name, m, index); if (mrURL != null) { return mrURL; } } return bundlefile.getResourceURL(name, m, index); }
private URL findResourceImpl(String name, BundleFile bundlefile, int index) { return bundlefile.getResourceURL(name, generation.getRevision().getRevisions().getModule(), index); }
private URL findResourceImpl(String name, BundleFile bundlefile, int index) { return bundlefile.getResourceURL(name, generation.getRevision().getRevisions().getModule(), index); }
private URL findResourceImpl(String name, BundleFile bundlefile, int index) { return bundlefile.getResourceURL(name, generation.getRevision().getRevisions().getModule(), index); }
private URL findResourceImpl(String name, BundleFile bundlefile, int index) { return bundlefile.getResourceURL(name, generation.getRevision().getRevisions().getModule(), index); }