Interface RequiredBundle
-
public interface RequiredBundleDeprecated.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.- Since:
- 1.2
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description BundlegetBundle()Deprecated.Returns the bundle associated with this required bundle.Bundle[]getRequiringBundles()Deprecated.Returns the bundles that currently require this required bundle.java.lang.StringgetSymbolicName()Deprecated.Returns the symbolic name of this required bundle.VersiongetVersion()Deprecated.Returns the version of this required bundle.booleanisRemovalPending()Deprecated.Returnstrueif the bundle associated with thisRequiredBundleobject has been updated or uninstalled.
-
-
-
Method Detail
-
getSymbolicName
java.lang.String getSymbolicName()
Deprecated.Returns the symbolic name of this required bundle.- Returns:
- The symbolic name of this required bundle.
-
getBundle
Bundle getBundle()
Deprecated.Returns the bundle associated with this required bundle.- Returns:
- The bundle, or
nullif thisRequiredBundleobject has become stale.
-
getRequiringBundles
Bundle[] getRequiringBundles()
Deprecated.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.
- Returns:
- 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()
Deprecated.Returns the version of this required bundle.- Returns:
- The version of this required bundle, or
Version.emptyVersionif no version information is available.
-
isRemovalPending
boolean isRemovalPending()
Deprecated.Returnstrueif the bundle associated with thisRequiredBundleobject has been updated or uninstalled.- Returns:
trueif the required bundle has been updated or uninstalled, or if theRequiredBundleobject has become stale;falseotherwise.
-
-