|
OSGi™ Service Platform Release 4 Version 4.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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 ExportedPackage
object becomes stale if the package it
references has been updated or removed as a result of calling
PackageAdmin.refreshPackages()
.
If this object becomes stale, its getName()
and
getVersion()
methods continue to return their original values,
isRemovalPending()
returns true
, and
getExportingBundle()
and getImportingBundles()
return null
.
Method Summary | |
Bundle |
getExportingBundle()
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.String |
getName()
Returns the name of the package associated with this exported package. |
java.lang.String |
getSpecificationVersion()
Deprecated. As of 1.2, replaced by getVersion() . |
Version |
getVersion()
Returns the version of this exported package. |
boolean |
isRemovalPending()
Returns true if the package associated with this
ExportedPackage object has been exported by a bundle that
has been updated or uninstalled. |
Method Detail |
public java.lang.String getName()
public Bundle getExportingBundle()
null
if this
ExportedPackage
object has become stale.public Bundle[] getImportingBundles()
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()
.
null
if this
ExportedPackage
object has become stale.public java.lang.String getSpecificationVersion()
getVersion()
.
null
if
no version information is available.public Version getVersion()
Version.emptyVersion
if no version information is
available.public boolean isRemovalPending()
true
if the package associated with this
ExportedPackage
object has been exported by a bundle that
has been updated or uninstalled.
true
if the associated package is being exported
by a bundle that has been updated or uninstalled, or if this
ExportedPackage
object has become stale;
false
otherwise.
|
OSGi™ Service Platform Release 4 Version 4.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |