org.osgi.service.packageadmin.ExportedPackage Interface Reference

Inheritance diagram for org.osgi.service.packageadmin.ExportedPackage:

org.knopflerfish.framework.ExportedPackageImpl

List of all members.


Detailed Description

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.

Version:
Revision
1.14

Definition at line 48 of file ExportedPackage.java.


Public Member Functions

String getName ()
 Returns the name of the package associated with this exported package.
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.
String getSpecificationVersion ()
 Returns the version of this exported package.
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.

Member Function Documentation

String org.osgi.service.packageadmin.ExportedPackage.getName (  ) 

Returns the name of the package associated with this exported package.

Returns:
The name of this exported package.

Implemented in org.knopflerfish.framework.ExportedPackageImpl.

Bundle org.osgi.service.packageadmin.ExportedPackage.getExportingBundle (  ) 

Returns the bundle exporting the package associated with this exported package.

Returns:
The exporting bundle, or null if this ExportedPackage object has become stale.

Implemented in org.knopflerfish.framework.ExportedPackageImpl.

Bundle [] org.osgi.service.packageadmin.ExportedPackage.getImportingBundles (  ) 

Returns the resolved bundles that are currently wired to this exported package.

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().

Returns:
The array of resolved bundles currently wired to this exported package, or null if this ExportedPackage object has become stale.

Implemented in org.knopflerfish.framework.ExportedPackageImpl.

String org.osgi.service.packageadmin.ExportedPackage.getSpecificationVersion (  ) 

Returns the version of this exported package.

Returns:
The version of this exported package, or null if no version information is available.
Deprecated:
As of 1.2, replaced by getVersion.

Implemented in org.knopflerfish.framework.ExportedPackageImpl.

Version org.osgi.service.packageadmin.ExportedPackage.getVersion (  ) 

Returns the version of this exported package.

Returns:
The version of this exported package, or Version#emptyVersion if no version information is available.
Since:
1.2

Implemented in org.knopflerfish.framework.ExportedPackageImpl.

boolean org.osgi.service.packageadmin.ExportedPackage.isRemovalPending (  ) 

Returns true if the package associated with this ExportedPackage object has been exported by a bundle that has been updated or uninstalled.

Returns:
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.

Implemented in org.knopflerfish.framework.ExportedPackageImpl.


The documentation for this interface was generated from the following file:
Generated on Mon Jan 11 21:19:24 2010 for OpenMobileIS by  doxygen 1.5.4