接口 RequiredBundle
-
public interface RequiredBundle已过时。The PackageAdmin service has been replaced by theorg.osgi.framework.wiringpackage.A required bundle. Objects implementing this interface are created by the Package Admin service.The term required bundle refers to a resolved bundle that has a bundle symbolic name and is not a fragment. That is, a bundle that may be required by other bundles. This bundle may or may not be currently required by other bundles.
The information about a required bundle provided by this object may change. A
RequiredBundleobject becomes stale if an exported package of the bundle it references has been updated or removed as a result of callingPackageAdmin.refreshPackages()). If this object becomes stale, itsgetSymbolicName()andgetVersion()methods continue to return their original values,isRemovalPending()returns true, andgetBundle()andgetRequiringBundles()returnnull.- 从以下版本开始:
- 1.2
- 作者:
- $Id: 08ab9c1a6f4a9af2060293d2c2972e4e07e2a238 $
-
-
方法概要
所有方法 实例方法 抽象方法 已过时的方法 修饰符和类型 方法 说明 BundlegetBundle()已过时。Returns the bundle associated with this required bundle.Bundle[]getRequiringBundles()已过时。Returns the bundles that currently require this required bundle.java.lang.StringgetSymbolicName()已过时。Returns the symbolic name of this required bundle.VersiongetVersion()已过时。Returns the version of this required bundle.booleanisRemovalPending()已过时。Returnstrueif the bundle associated with thisRequiredBundleobject has been updated or uninstalled.
-
-
-
方法详细资料
-
getSymbolicName
java.lang.String getSymbolicName()
已过时。Returns the symbolic name of this required bundle.- 返回:
- The symbolic name of this required bundle.
-
getBundle
Bundle getBundle()
已过时。Returns the bundle associated with this required bundle.- 返回:
- The bundle, or
nullif thisRequiredBundleobject has become stale.
-
getRequiringBundles
Bundle[] getRequiringBundles()
已过时。Returns the bundles that currently require this required bundle.If this required bundle is required and then re-exported by another bundle then all the requiring bundles of the re-exporting bundle are included in the returned array.
- 返回:
- An array of bundles currently requiring this required bundle, or
nullif thisRequiredBundleobject has become stale. The array will be empty if no bundles require this required package.
-
getVersion
Version getVersion()
已过时。Returns the version of this required bundle.- 返回:
- The version of this required bundle, or
Version.emptyVersionif no version information is available.
-
isRemovalPending
boolean isRemovalPending()
已过时。Returnstrueif the bundle associated with thisRequiredBundleobject has been updated or uninstalled.- 返回:
trueif the required bundle has been updated or uninstalled, or if theRequiredBundleobject has become stale;falseotherwise.
-
-