public Enumeration<URL> getResources(String name) { Enumeration<URL> results = null; for (int i = 0; i < suppliers.length; i++) results = BundleLoader.compoundEnumerations(results, suppliers[i].getResources(name)); return results; }
public Enumeration<URL> getResources(String name) { Enumeration<URL> results = null; for (int i = 0; i < suppliers.length; i++) results = BundleLoader.compoundEnumerations(results, suppliers[i].getResources(name)); return results; }
public Enumeration<URL> getResources(String name) { Enumeration<URL> results = null; for (int i = 0; i < suppliers.length; i++) results = BundleLoader.compoundEnumerations(results, suppliers[i].getResources(name)); return results; }
public Enumeration<URL> getResources(String name) { Enumeration<URL> results = null; for (int i = 0; i < suppliers.length; i++) results = BundleLoader.compoundEnumerations(results, suppliers[i].getResources(name)); return results; }
public Enumeration<URL> getResources(String name) { Enumeration<URL> results = null; for (int i = 0; i < suppliers.length; i++) results = BundleLoader.compoundEnumerations(results, suppliers[i].getResources(name)); return results; }
public Enumeration<URL> getResources(String name) { Enumeration<URL> results = null; for (int i = 0; i < suppliers.length; i++) results = BundleLoader.compoundEnumerations(results, suppliers[i].getResources(name)); return results; }
public Enumeration<URL> getResources(String name) { Enumeration<URL> results = null; for (int i = 0; i < suppliers.length; i++) results = BundleLoader.compoundEnumerations(results, suppliers[i].getResources(name)); return results; }
public Enumeration<URL> getResources(String name) { Enumeration<URL> results = null; for (int i = 0; i < suppliers.length; i++) results = BundleLoader.compoundEnumerations(results, suppliers[i].getResources(name)); return results; }
public Enumeration<URL> getResources(String name) throws IOException { if ((name.length() > 1) && (name.charAt(0) == '/')) /* if name has a leading slash */ name = name.substring(1); /* remove leading slash before search */ String pkgName = getResourcePackageName(name); // follow the OSGi delegation model // First check the parent classloader for system resources, if it is a java resource. Enumeration<URL> result = null; if (pkgName.startsWith(JAVA_PACKAGE) || bundle.getFramework().isBootDelegationPackage(pkgName)) { // 1) if startsWith "java." delegate to parent and terminate search // 2) if part of the bootdelegation list then delegate to parent and continue of failure ClassLoader parentCL = getParentClassLoader(); result = parentCL == null ? null : parentCL.getResources(name); if (pkgName.startsWith(JAVA_PACKAGE)) return result; } return compoundEnumerations(result, findResources(name)); }
public Enumeration<URL> getResources(String name) throws IOException { if ((name.length() > 1) && (name.charAt(0) == '/')) /* if name has a leading slash */ name = name.substring(1); /* remove leading slash before search */ String pkgName = getResourcePackageName(name); // follow the OSGi delegation model // First check the parent classloader for system resources, if it is a java resource. Enumeration<URL> result = null; if (pkgName.startsWith(JAVA_PACKAGE) || bundle.getFramework().isBootDelegationPackage(pkgName)) { // 1) if startsWith "java." delegate to parent and terminate search // 2) if part of the bootdelegation list then delegate to parent and continue of failure ClassLoader parentCL = getParentClassLoader(); result = parentCL == null ? null : parentCL.getResources(name); if (pkgName.startsWith(JAVA_PACKAGE)) return result; } return compoundEnumerations(result, findResources(name)); }
public Enumeration<URL> loadResources(String name) { if (allDependents == null) return null; Enumeration<URL> results = null; int size = allDependents.size(); for (int i = 0; i < size; i++) { try { BundleLoaderProxy proxy = buddyRequester.getLoaderProxy(allDependents.get(i)); if (proxy == null) continue; results = BundleLoader.compoundEnumerations(results, proxy.getBundleLoader().findResources(name)); } catch (IOException e) { //Ignore and keep looking } } return results; } }
public Enumeration<URL> loadResources(String name) { if (allDependents == null) return null; Enumeration<URL> results = null; int size = allDependents.size(); for (int i = 0; i < size; i++) { try { BundleLoaderProxy proxy = buddyRequester.getLoaderProxy(allDependents.get(i)); if (proxy == null) continue; results = BundleLoader.compoundEnumerations(results, proxy.getBundleLoader().findResources(name)); } catch (IOException e) { //Ignore and keep looking } } return results; } }
public Enumeration<URL> loadResources(String name) { //get all exported packages that match the resource's package ExportedPackage[] pkgs = admin.getExportedPackages(BundleLoader.getResourcePackageName(name)); if (pkgs == null || pkgs.length == 0) return null; //get all matching resources for each package Enumeration<URL> results = null; for (int i = 0; i < pkgs.length; i++) { try { results = BundleLoader.compoundEnumerations(results, pkgs[i].getExportingBundle().getResources(name)); } catch (IOException e) { //ignore IO problems and try next package } } return results; } }
public Enumeration<URL> loadResources(String name) { //get all exported packages that match the resource's package ExportedPackage[] pkgs = admin.getExportedPackages(BundleLoader.getResourcePackageName(name)); if (pkgs == null || pkgs.length == 0) return null; //get all matching resources for each package Enumeration<URL> results = null; for (int i = 0; i < pkgs.length; i++) { try { results = BundleLoader.compoundEnumerations(results, pkgs[i].getExportingBundle().getResources(name)); } catch (IOException e) { //ignore IO problems and try next package } } return results; } }
public Enumeration<URL> loadResources(String name) { //get all exported packages that match the resource's package ExportedPackage[] pkgs = admin.getExportedPackages(BundleLoader.getResourcePackageName(name)); if (pkgs == null || pkgs.length == 0) return null; //get all matching resources for each package Enumeration<URL> results = null; for (int i = 0; i < pkgs.length; i++) { try { results = BundleLoader.compoundEnumerations(results, pkgs[i].getExportingBundle().getResources(name)); } catch (IOException e) { //ignore IO problems and try next package } } return results; } }
public Enumeration<URL> loadResources(String name) { //get all exported packages that match the resource's package ExportedPackage[] pkgs = admin.getExportedPackages(BundleLoader.getResourcePackageName(name)); if (pkgs == null || pkgs.length == 0) return null; //get all matching resources for each package Enumeration<URL> results = null; for (int i = 0; i < pkgs.length; i++) { try { results = BundleLoader.compoundEnumerations(results, pkgs[i].getExportingBundle().getResources(name)); } catch (IOException e) { //ignore IO problems and try next package } } return results; } }
public Enumeration<URL> loadResources(String name) { //get all exported packages that match the resource's package ExportedPackage[] pkgs = admin.getExportedPackages(BundleLoader.getResourcePackageName(name)); if (pkgs == null || pkgs.length == 0) return null; //get all matching resources for each package Enumeration<URL> results = null; for (int i = 0; i < pkgs.length; i++) { try { results = BundleLoader.compoundEnumerations(results, pkgs[i].getExportingBundle().getResources(name)); } catch (IOException e) { //ignore IO problems and try next package } } return results; } }
public Enumeration<URL> loadResources(String name) { //get all exported packages that match the resource's package ExportedPackage[] pkgs = admin.getExportedPackages(BundleLoader.getResourcePackageName(name)); if (pkgs == null || pkgs.length == 0) return null; //get all matching resources for each package Enumeration<URL> results = null; for (int i = 0; i < pkgs.length; i++) { try { results = BundleLoader.compoundEnumerations(results, pkgs[i].getExportingBundle().getResources(name)); } catch (IOException e) { //ignore IO problems and try next package } } return results; } }
public Enumeration<URL> loadResources(String name) { //get all exported packages that match the resource's package ExportedPackage[] pkgs = admin.getExportedPackages(BundleLoader.getResourcePackageName(name)); if (pkgs == null || pkgs.length == 0) return null; //get all matching resources for each package Enumeration<URL> results = null; for (int i = 0; i < pkgs.length; i++) { try { results = BundleLoader.compoundEnumerations(results, pkgs[i].getExportingBundle().getResources(name)); } catch (IOException e) { //ignore IO problems and try next package } } return results; } }
public Enumeration<URL> loadResources(String name) { //get all exported packages that match the resource's package ExportedPackage[] pkgs = admin.getExportedPackages(BundleLoader.getResourcePackageName(name)); if (pkgs == null || pkgs.length == 0) return null; //get all matching resources for each package Enumeration<URL> results = null; for (int i = 0; i < pkgs.length; i++) { try { results = BundleLoader.compoundEnumerations(results, pkgs[i].getExportingBundle().getResources(name)); } catch (IOException e) { //ignore IO problems and try next package } } return results; } }