1 18 19 package org.osgi.service.packageadmin; 20 21 import org.osgi.framework.Bundle; 22 23 36 public interface PackageAdmin { 37 52 public ExportedPackage[] getExportedPackages(Bundle bundle); 53 54 63 public ExportedPackage[] getExportedPackages(String name); 64 65 78 public ExportedPackage getExportedPackage(String name); 79 80 143 public void refreshPackages(Bundle[] bundles); 144 145 166 public boolean resolveBundles(Bundle[] bundles); 167 168 181 public RequiredBundle[] getRequiredBundles(String symbolicName); 182 183 202 public Bundle[] getBundles(String symbolicName, String versionRange); 203 204 220 public Bundle[] getFragments(Bundle bundle); 221 222 233 public Bundle[] getHosts(Bundle bundle); 234 235 247 public Bundle getBundle(Class clazz); 248 249 257 public static final int BUNDLE_TYPE_FRAGMENT = 0x00000001; 258 259 277 public int getBundleType(Bundle bundle); 278 } 279 | Popular Tags |