/** * @see ModuleClassLoader#findEntries(String, String, int) */ public List<URL> findEntries(String path, String filePattern, int options) { List<Generation> generations = new ArrayList<Generation>(); // first get the host bundle file generations.add(generation); // next get the attached fragments bundle files FragmentClasspath[] currentFragments = getFragmentClasspaths(); for (FragmentClasspath fragmentClasspath : currentFragments) generations.add(fragmentClasspath.getGeneration()); List<URL> result = Collections.<URL> emptyList(); // now search over all the bundle files Enumeration<URL> eURLs = Storage.findEntries(generations, path, filePattern, options); if (eURLs == null) return result; result = new ArrayList<URL>(); while (eURLs.hasMoreElements()) result.add(eURLs.nextElement()); return Collections.unmodifiableList(result); }
/** * @see ModuleClassLoader#findEntries(String, String, int) */ public List<URL> findEntries(String path, String filePattern, int options) { List<Generation> generations = new ArrayList<>(); // first get the host bundle file generations.add(generation); // next get the attached fragments bundle files FragmentClasspath[] currentFragments = getFragmentClasspaths(); for (FragmentClasspath fragmentClasspath : currentFragments) generations.add(fragmentClasspath.getGeneration()); List<URL> result = Collections.<URL> emptyList(); // now search over all the bundle files Enumeration<URL> eURLs = Storage.findEntries(generations, path, filePattern, options); if (eURLs == null) return result; result = new ArrayList<>(); while (eURLs.hasMoreElements()) result.add(eURLs.nextElement()); return Collections.unmodifiableList(result); }
/** * @see ModuleClassLoader#findEntries(String, String, int) */ public List<URL> findEntries(String path, String filePattern, int options) { List<Generation> generations = new ArrayList<Generation>(); // first get the host bundle file generations.add(generation); // next get the attached fragments bundle files FragmentClasspath[] currentFragments = getFragmentClasspaths(); for (FragmentClasspath fragmentClasspath : currentFragments) generations.add(fragmentClasspath.getGeneration()); List<URL> result = Collections.<URL> emptyList(); // now search over all the bundle files Enumeration<URL> eURLs = Storage.findEntries(generations, path, filePattern, options); if (eURLs == null) return result; result = new ArrayList<URL>(); while (eURLs.hasMoreElements()) result.add(eURLs.nextElement()); return Collections.unmodifiableList(result); }
/** * @see ModuleClassLoader#findEntries(String, String, int) */ public List<URL> findEntries(String path, String filePattern, int options) { List<Generation> generations = new ArrayList<>(); // first get the host bundle file generations.add(generation); // next get the attached fragments bundle files FragmentClasspath[] currentFragments = getFragmentClasspaths(); for (FragmentClasspath fragmentClasspath : currentFragments) generations.add(fragmentClasspath.getGeneration()); List<URL> result = Collections.<URL> emptyList(); // now search over all the bundle files Enumeration<URL> eURLs = Storage.findEntries(generations, path, filePattern, options); if (eURLs == null) return result; result = new ArrayList<>(); while (eURLs.hasMoreElements()) result.add(eURLs.nextElement()); return Collections.unmodifiableList(result); }
/** * @see ModuleClassLoader#findEntries(String, String, int) */ public List<URL> findEntries(String path, String filePattern, int options) { List<Generation> generations = new ArrayList<Generation>(); // first get the host bundle file generations.add(generation); // next get the attached fragments bundle files FragmentClasspath[] currentFragments = getFragmentClasspaths(); for (FragmentClasspath fragmentClasspath : currentFragments) generations.add(fragmentClasspath.getGeneration()); List<URL> result = Collections.<URL> emptyList(); // now search over all the bundle files Enumeration<URL> eURLs = Storage.findEntries(generations, path, filePattern, options); if (eURLs == null) return result; result = new ArrayList<URL>(); while (eURLs.hasMoreElements()) result.add(eURLs.nextElement()); return Collections.unmodifiableList(result); }
/** * @see ModuleClassLoader#findEntries(String, String, int) */ public List<URL> findEntries(String path, String filePattern, int options) { List<Generation> generations = new ArrayList<Generation>(); // first get the host bundle file generations.add(generation); // next get the attached fragments bundle files FragmentClasspath[] currentFragments = getFragmentClasspaths(); for (FragmentClasspath fragmentClasspath : currentFragments) generations.add(fragmentClasspath.getGeneration()); List<URL> result = Collections.<URL> emptyList(); // now search over all the bundle files Enumeration<URL> eURLs = Storage.findEntries(generations, path, filePattern, options); if (eURLs == null) return result; result = new ArrayList<URL>(); while (eURLs.hasMoreElements()) result.add(eURLs.nextElement()); return Collections.unmodifiableList(result); }
@Override public Enumeration<URL> findEntries(String path, String filePattern, boolean recurse) { try { equinoxContainer.checkAdminPermission(this, AdminPermission.RESOURCE); } catch (SecurityException e) { return null; } checkValid(); resolve(); return Storage.findEntries(getGenerations(), path, filePattern, recurse ? BundleWiring.FINDENTRIES_RECURSE : 0); }
@Override public Enumeration<URL> findEntries(String path, String filePattern, boolean recurse) { try { equinoxContainer.checkAdminPermission(this, AdminPermission.RESOURCE); } catch (SecurityException e) { return null; } checkValid(); resolve(); return Storage.findEntries(getGenerations(), path, filePattern, recurse ? BundleWiring.FINDENTRIES_RECURSE : 0); }
@Override public Enumeration<URL> findEntries(String path, String filePattern, boolean recurse) { try { equinoxContainer.checkAdminPermission(this, AdminPermission.RESOURCE); } catch (SecurityException e) { return null; } checkValid(); resolve(); return Storage.findEntries(getGenerations(), path, filePattern, recurse ? BundleWiring.FINDENTRIES_RECURSE : 0); }
@Override public Enumeration<URL> findEntries(String path, String filePattern, boolean recurse) { try { equinoxContainer.checkAdminPermission(this, AdminPermission.RESOURCE); } catch (SecurityException e) { return null; } checkValid(); resolve(); return Storage.findEntries(getGenerations(), path, filePattern, recurse ? BundleWiring.FINDENTRIES_RECURSE : 0); }
@Override public Enumeration<URL> findEntries(String path, String filePattern, boolean recurse) { try { equinoxContainer.checkAdminPermission(this, AdminPermission.RESOURCE); } catch (SecurityException e) { return null; } checkValid(); resolve(); return Storage.findEntries(getGenerations(), path, filePattern, recurse ? BundleWiring.FINDENTRIES_RECURSE : 0); }
@Override public Enumeration<URL> findEntries(String path, String filePattern, boolean recurse) { try { equinoxContainer.checkAdminPermission(this, AdminPermission.RESOURCE); } catch (SecurityException e) { return null; } checkValid(); resolve(); return Storage.findEntries(getGenerations(), path, filePattern, recurse ? BundleWiring.FINDENTRIES_RECURSE : 0); }