public org.osgi.framework.Bundle getBundle() { if (isStale()) return null; return bundle; }
public org.osgi.framework.Bundle getBundle() { if (isStale()) return null; return bundle; }
public org.osgi.framework.Bundle getExportingBundle() { if (supplier.isStale()) return null; return supplier.getBundleHost(); }
public org.osgi.framework.Bundle getExportingBundle() { if (supplier.isStale()) return null; return supplier.getBundleHost(); }
public Bundle[] getRequiringBundles() { if (isStale()) return null; // This is VERY slow; but never gets called in regular execution. BundleDescription[] dependents = description.getDependents(); if (dependents == null || dependents.length == 0) return new Bundle[0]; List<Bundle> result = new ArrayList<Bundle>(dependents.length); for (int i = 0; i < dependents.length; i++) addRequirers(dependents[i], result); return result.toArray(new org.osgi.framework.Bundle[result.size()]); }
public Bundle[] getRequiringBundles() { if (isStale()) return null; // This is VERY slow; but never gets called in regular execution. BundleDescription[] dependents = description.getDependents(); if (dependents == null || dependents.length == 0) return new Bundle[0]; List<Bundle> result = new ArrayList<Bundle>(dependents.length); for (int i = 0; i < dependents.length; i++) addRequirers(dependents[i], result); return result.toArray(new org.osgi.framework.Bundle[result.size()]); }
public Bundle[] getImportingBundles() { if (supplier.isStale()) return null; AbstractBundle bundle = (AbstractBundle) getExportingBundle(); if (bundle == null) return null; AbstractBundle[] bundles = bundle.framework.getAllBundles(); List<Bundle> importers = new ArrayList<Bundle>(10); PackageSource supplierSource = supplier.createPackageSource(exportedPackage, false); for (int i = 0; i < bundles.length; i++) { if (!(bundles[i] instanceof BundleHost)) continue; BundleLoader loader = ((BundleHost) bundles[i]).getBundleLoader(); if (loader == null || loader.getBundle() == supplier.getBundle()) continue; // do not include include the exporter of the package PackageSource importerSource = loader.getPackageSource(getName()); if (supplierSource != null && supplierSource.hasCommonSource(importerSource)) importers.add(bundles[i]); } return importers.toArray(new Bundle[importers.size()]); }
public Bundle[] getImportingBundles() { if (supplier.isStale()) return null; AbstractBundle bundle = (AbstractBundle) getExportingBundle(); if (bundle == null) return null; AbstractBundle[] bundles = bundle.framework.getAllBundles(); List<Bundle> importers = new ArrayList<Bundle>(10); PackageSource supplierSource = supplier.createPackageSource(exportedPackage, false); for (int i = 0; i < bundles.length; i++) { if (!(bundles[i] instanceof BundleHost)) continue; BundleLoader loader = ((BundleHost) bundles[i]).getBundleLoader(); if (loader == null || loader.getBundle() == supplier.getBundle()) continue; // do not include include the exporter of the package PackageSource importerSource = loader.getPackageSource(getName()); if (supplierSource != null && supplierSource.hasCommonSource(importerSource)) importers.add(bundles[i]); } return importers.toArray(new Bundle[importers.size()]); }