org.knopflerfish.framework.ExportedPackageImpl Class Reference

Inheritance diagram for org.knopflerfish.framework.ExportedPackageImpl:

org.osgi.service.packageadmin.ExportedPackage

List of all members.


Detailed Description

An exported package.

Instances implementing this interface are created by the PackageAdmin service.

Note that the information about an exported package provided by this class is valid only until the next time PackageAdmin.refreshPackages() is called. If an ExportedPackage becomes stale (that is, the package it references has been updated or removed as a result of calling PackageAdmin.refreshPackages()), its getName() and getSpecificationVersion() continue to return their old values, isRemovalPending() returns true, and getExportingBundle() and getImportingBundles() return null.

Definition at line 61 of file ExportedPackageImpl.java.


Public Member Functions

String getName ()
 Returns the name of this ExportedPackage.
Bundle getExportingBundle ()
 Returns the bundle that is exporting this ExportedPackage.
Bundle[] getImportingBundles ()
 Returns the resolved bundles that are currently importing this ExportedPackage.
String getSpecificationVersion ()
 Returns the specification version of this ExportedPackage, as specified in the exporting bundle's manifest file.
boolean isRemovalPending ()
 Returns true if this ExportedPackage has been exported by a bundle that has been updated or uninstalled.
Version getVersion ()
 Returns the version of this exported package.

Member Function Documentation

String org.knopflerfish.framework.ExportedPackageImpl.getName (  ) 

Returns the name of this ExportedPackage.

Returns:
The name of this ExportedPackage.

Implements org.osgi.service.packageadmin.ExportedPackage.

Definition at line 75 of file ExportedPackageImpl.java.

References org.knopflerfish.framework.ExportPkg.name.

Bundle org.knopflerfish.framework.ExportedPackageImpl.getExportingBundle (  ) 

Returns the bundle that is exporting this ExportedPackage.

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

Implements org.osgi.service.packageadmin.ExportedPackage.

Definition at line 86 of file ExportedPackageImpl.java.

References org.knopflerfish.framework.ExportPkg.bpkgs, org.knopflerfish.framework.BundlePackages.bundle, and org.knopflerfish.framework.ExportPkg.pkg.

Bundle [] org.knopflerfish.framework.ExportedPackageImpl.getImportingBundles (  ) 

Returns the resolved bundles that are currently importing this ExportedPackage.

The returned array always includes the bundle returned by getExportingBundle since an exporter always implicitly imports its exported packages.

Returns:
The array of resolved bundles currently importing this ExportedPackage, or null if this ExportedPackage has become stale.

Implements org.osgi.service.packageadmin.ExportedPackage.

Definition at line 107 of file ExportedPackageImpl.java.

References org.knopflerfish.framework.ExportPkg.bpkgs, org.knopflerfish.framework.ExportPkg.getPackageImporters(), and org.knopflerfish.framework.BundlePackages.getRequiredBy().

String org.knopflerfish.framework.ExportedPackageImpl.getSpecificationVersion (  ) 

Returns the specification version of this ExportedPackage, as specified in the exporting bundle's manifest file.

Returns:
The specification version of this ExportedPackage, or null if no version information is available.

Implements org.osgi.service.packageadmin.ExportedPackage.

Definition at line 132 of file ExportedPackageImpl.java.

References org.osgi.framework.Version.toString(), and org.knopflerfish.framework.ExportPkg.version.

boolean org.knopflerfish.framework.ExportedPackageImpl.isRemovalPending (  ) 

Returns true if this ExportedPackage has been exported by a bundle that has been updated or uninstalled.

Returns:
true if this ExportedPackage is being exported by a bundle that has been updated or uninstalled; false otherwise.

Implements org.osgi.service.packageadmin.ExportedPackage.

Definition at line 145 of file ExportedPackageImpl.java.

References org.knopflerfish.framework.ExportPkg.isProvider(), and org.knopflerfish.framework.ExportPkg.zombie.

Version org.knopflerfish.framework.ExportedPackageImpl.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

Implements org.osgi.service.packageadmin.ExportedPackage.

Definition at line 155 of file ExportedPackageImpl.java.

References org.knopflerfish.framework.ExportPkg.version.


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