public class ExportedPackageImpl extends java.lang.Object implements ExportedPackage
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.
Modifier and Type | Method and Description |
---|---|
Bundle |
getExportingBundle()
Returns the bundle that is exporting this ExportedPackage.
|
Bundle[] |
getImportingBundles()
Returns the resolved bundles that are currently importing this
ExportedPackage.
|
java.lang.String |
getName()
Returns the name of this ExportedPackage.
|
java.lang.String |
getSpecificationVersion()
Returns the specification version of this ExportedPackage, as
specified in the exporting bundle's manifest file.
|
Version |
getVersion()
Returns the version of this exported package.
|
boolean |
isRemovalPending()
Returns true if this ExportedPackage has been
exported by a bundle that has been updated or uninstalled.
|
java.lang.String |
toString() |
public java.lang.String getName()
getName
in interface ExportedPackage
public Bundle getExportingBundle()
getExportingBundle
in interface ExportedPackage
public Bundle[] getImportingBundles()
getImportingBundles
in interface ExportedPackage
public java.lang.String getSpecificationVersion()
getSpecificationVersion
in interface ExportedPackage
public boolean isRemovalPending()
isRemovalPending
in interface ExportedPackage
public Version getVersion()
ExportedPackage
getVersion
in interface ExportedPackage
Version.emptyVersion
if no version information is
available.public java.lang.String toString()
toString
in class java.lang.Object