接口 ExportedPackage
-
public interface ExportedPackage已过时。The PackageAdmin service has been replaced by theorg.osgi.framework.wiringpackage.An exported package. Objects implementing this interface are created by the Package Admin service.The term exported package refers to a package that has been exported from a resolved bundle. This package may or may not be currently wired to other bundles.
The information about an exported package provided by this object may change. An
ExportedPackageobject becomes stale if the package it references has been updated or removed as a result of callingPackageAdmin.refreshPackages(). If this object becomes stale, itsgetName()andgetVersion()methods continue to return their original values,isRemovalPending()returnstrue, andgetExportingBundle()andgetImportingBundles()returnnull.- 作者:
- $Id: e04a2beb3de2afff4cb01747e589c04b5e0f0cc8 $
-
-
方法概要
所有方法 实例方法 抽象方法 已过时的方法 修饰符和类型 方法 说明 BundlegetExportingBundle()已过时。Returns the bundle exporting the package associated with this exported package.Bundle[]getImportingBundles()已过时。Returns the resolved bundles that are currently wired to this exported package.java.lang.StringgetName()已过时。Returns the name of the package associated with this exported package.java.lang.StringgetSpecificationVersion()已过时。As of 1.2, replaced bygetVersion().VersiongetVersion()已过时。Returns the version of this exported package.booleanisRemovalPending()已过时。Returnstrueif the package associated with thisExportedPackageobject has been exported by a bundle that has been updated or uninstalled.
-
-
-
方法详细资料
-
getName
java.lang.String getName()
已过时。Returns the name of the package associated with this exported package.- 返回:
- The name of this exported package.
-
getExportingBundle
Bundle getExportingBundle()
已过时。Returns the bundle exporting the package associated with this exported package.- 返回:
- The exporting bundle, or
nullif thisExportedPackageobject has become stale.
-
getImportingBundles
Bundle[] getImportingBundles()
已过时。Returns the resolved bundles that are currently wired to this exported package.Bundles which require the exporting bundle associated with this exported package are considered to be wired to this exported package are included in the returned array. See
RequiredBundle.getRequiringBundles().- 返回:
- The array of resolved bundles currently wired to this exported
package, or
nullif thisExportedPackageobject has become stale. The array will be empty if no bundles are wired to this exported package.
-
getSpecificationVersion
java.lang.String getSpecificationVersion()
已过时。As of 1.2, replaced bygetVersion().Returns the version of this exported package.- 返回:
- The version of this exported package, or
nullif no version information is available.
-
getVersion
Version getVersion()
已过时。Returns the version of this exported package.- 返回:
- The version of this exported package, or
Version.emptyVersionif no version information is available. - 从以下版本开始:
- 1.2
-
isRemovalPending
boolean isRemovalPending()
已过时。Returnstrueif the package associated with thisExportedPackageobject has been exported by a bundle that has been updated or uninstalled.- 返回:
trueif the associated package is being exported by a bundle that has been updated or uninstalled, or if thisExportedPackageobject has become stale;falseotherwise.
-
-