Instances implementing this interface are created by the PackageAdmin service.
Note that the information about an exported package provided by this class is valid only until the next time PackageAdmin.refreshPackages()
is called. If an ExportedPackage becomes stale (that is, the package it references has been updated or removed as a result of calling PackageAdmin.refreshPackages()), its getName() and getSpecificationVersion() continue to return their old values, isRemovalPending() returns true, and getExportingBundle() and getImportingBundles() return null.
Definition at line 61 of file ExportedPackageImpl.java.
Public Member Functions | |
String | getName () |
Returns the name of this ExportedPackage . | |
Bundle | getExportingBundle () |
Returns the bundle that is exporting this ExportedPackage . | |
Bundle[] | getImportingBundles () |
Returns the resolved bundles that are currently importing this ExportedPackage . | |
String | getSpecificationVersion () |
Returns the specification version of this ExportedPackage , as specified in the exporting bundle's manifest file. | |
boolean | isRemovalPending () |
Returns true if this ExportedPackage has been exported by a bundle that has been updated or uninstalled. | |
Version | getVersion () |
Returns the version of this exported package. |
String org.knopflerfish.framework.ExportedPackageImpl.getName | ( | ) |
Returns the name of this ExportedPackage
.
ExportedPackage
. Implements org.osgi.service.packageadmin.ExportedPackage.
Definition at line 75 of file ExportedPackageImpl.java.
References org.knopflerfish.framework.ExportPkg.name.
Bundle org.knopflerfish.framework.ExportedPackageImpl.getExportingBundle | ( | ) |
Returns the bundle that is exporting this ExportedPackage
.
ExportedPackage
has become stale. Implements org.osgi.service.packageadmin.ExportedPackage.
Definition at line 86 of file ExportedPackageImpl.java.
References org.knopflerfish.framework.ExportPkg.bpkgs, org.knopflerfish.framework.BundlePackages.bundle, and org.knopflerfish.framework.ExportPkg.pkg.
Bundle [] org.knopflerfish.framework.ExportedPackageImpl.getImportingBundles | ( | ) |
Returns the resolved bundles that are currently importing this ExportedPackage
.
The returned array always includes the bundle returned by getExportingBundle since an exporter always implicitly imports its exported packages.
ExportedPackage
, or null if this ExportedPackage
has become stale. Implements org.osgi.service.packageadmin.ExportedPackage.
Definition at line 107 of file ExportedPackageImpl.java.
References org.knopflerfish.framework.ExportPkg.bpkgs, org.knopflerfish.framework.ExportPkg.getPackageImporters(), and org.knopflerfish.framework.BundlePackages.getRequiredBy().
String org.knopflerfish.framework.ExportedPackageImpl.getSpecificationVersion | ( | ) |
Returns the specification version of this ExportedPackage
, as specified in the exporting bundle's manifest file.
ExportedPackage
, or null
if no version information is available. Implements org.osgi.service.packageadmin.ExportedPackage.
Definition at line 132 of file ExportedPackageImpl.java.
References org.osgi.framework.Version.toString(), and org.knopflerfish.framework.ExportPkg.version.
boolean org.knopflerfish.framework.ExportedPackageImpl.isRemovalPending | ( | ) |
Returns true
if this ExportedPackage
has been exported by a bundle that has been updated or uninstalled.
true
if this ExportedPackage
is being exported by a bundle that has been updated or uninstalled; false
otherwise. Implements org.osgi.service.packageadmin.ExportedPackage.
Definition at line 145 of file ExportedPackageImpl.java.
References org.knopflerfish.framework.ExportPkg.isProvider(), and org.knopflerfish.framework.ExportPkg.zombie.
Version org.knopflerfish.framework.ExportedPackageImpl.getVersion | ( | ) |
Returns the version of this exported package.
Implements org.osgi.service.packageadmin.ExportedPackage.
Definition at line 155 of file ExportedPackageImpl.java.
References org.knopflerfish.framework.ExportPkg.version.