org.osgi.framework.wiring
package.public interface RequiredBundle
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
RequiredBundle
object becomes stale if an exported package of
the bundle it references has been updated or removed as a result of calling
PackageAdmin.refreshPackages()
).
If this object becomes stale, its getSymbolicName()
and
getVersion()
methods continue to return their original values,
isRemovalPending()
returns true, and getBundle()
and getRequiringBundles()
return null
.
Modifier and Type | Method and Description |
---|---|
Bundle |
getBundle()
Deprecated.
Returns the bundle associated with this required bundle.
|
Bundle[] |
getRequiringBundles()
Deprecated.
Returns the bundles that currently require this required bundle.
|
java.lang.String |
getSymbolicName()
Deprecated.
Returns the symbolic name of this required bundle.
|
Version |
getVersion()
Deprecated.
Returns the version of this required bundle.
|
boolean |
isRemovalPending()
Deprecated.
Returns
true if the bundle associated with this
RequiredBundle object has been updated or uninstalled. |
java.lang.String getSymbolicName()
Bundle getBundle()
null
if this
RequiredBundle
object has become stale.Bundle[] getRequiringBundles()
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.
null
if this RequiredBundle
object
has become stale. The array will be empty if no bundles require
this required package.Version getVersion()
Version.emptyVersion
if no version information is
available.boolean isRemovalPending()
true
if the bundle associated with this
RequiredBundle
object has been updated or uninstalled.true
if the required bundle has been updated or
uninstalled, or if the RequiredBundle
object has
become stale; false
otherwise.Copyright © OSGi Alliance (2000, 2018). All Rights Reserved. Licensed under the OSGi Specification License, Version 2.0