public interface ExportedPackage
The information about an exported package provided by this object is valid only until the next time PackageAdmin.refreshPackages() is called. If an ExportedPackage object 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.
Modifier and Type | Method and Description |
---|---|
Bundle |
getExportingBundle()
Returns the bundle exporting the package associated with this ExportedPackage object.
|
Bundle[] |
getImportingBundles()
Returns the resolved bundles that are currently importing the package
associated with this ExportedPackage object.
|
java.lang.String |
getName()
Returns the name of the package associated with this ExportedPackage object.
|
java.lang.String |
getSpecificationVersion()
Returns the specification version of this ExportedPackage, as
specified in the exporting bundle's manifest file.
|
boolean |
isRemovalPending()
Returns true if the package associated with this ExportedPackage object has been
exported by a bundle that has been updated or uninstalled.
|
java.lang.String getName()
Bundle getExportingBundle()
Bundle[] getImportingBundles()
The returned array always includes the bundle returned by
getExportingBundle()
since an exporter always implicitly
imports its exported packages.
java.lang.String getSpecificationVersion()
boolean isRemovalPending()