|
OSGi Service Platform Release 4 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A required bundle. Instances implementing this interface are created by the Package Admin service.
The information about a RequiredBundle
provided by this object is
valid only until the next time PackageAdmin.refreshPackages()
called. If a RequiredBundle
object becomes stale (that is, the
bundle it references has been updated or removed as a result of calling
PackageAdmin.refreshPackages()
), its getSymbolicName()
and getVersion()
continue to return their old values,
isRemovalPending()
returns true, and getBundle()
and
getRequiringBundles()
return null
.
Method Summary | |
Bundle |
getBundle()
Returns the bundle which defines this RequiredBundle. |
Bundle[] |
getRequiringBundles()
Returns the resolved bundles that currently require this bundle. |
java.lang.String |
getSymbolicName()
Returns the symbolic name of the bundle. |
Version |
getVersion()
Returns the version of the bundle. |
boolean |
isRemovalPending()
Returns true if the bundle has been updated or uninstalled. |
Method Detail |
public Bundle getBundle()
null
if this RequiredBundle
object has become stale.public Bundle[] getRequiringBundles()
RequiredBundle
object is required and 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.public java.lang.String getSymbolicName()
public Version getVersion()
public boolean isRemovalPending()
true
if the bundle has been updated or uninstalled.
true
if the bundle has been updated or uninstalled, or
if the RequiredBundle
object has become stale;
false
otherwise.
|
OSGi Service Platform Release 4 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |