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.
限定符和类型 | 方法和说明 |
---|---|
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
在接口中 ExportedPackage
public Bundle getExportingBundle()
getExportingBundle
在接口中 ExportedPackage
public Bundle[] getImportingBundles()
getImportingBundles
在接口中 ExportedPackage
public java.lang.String getSpecificationVersion()
getSpecificationVersion
在接口中 ExportedPackage
public boolean isRemovalPending()
isRemovalPending
在接口中 ExportedPackage
public Version getVersion()
ExportedPackage
getVersion
在接口中 ExportedPackage
Version.emptyVersion
if no version information is
available.public java.lang.String toString()
toString
在类中 java.lang.Object