org.eclipse.osgi.framework.internal.core
Class ExportedPackageImpl

java.lang.Object
  extended by org.eclipse.osgi.framework.internal.core.ExportedPackageImpl
All Implemented Interfaces:
ExportedPackage

public class ExportedPackageImpl
extends java.lang.Object
implements ExportedPackage


Constructor Summary
ExportedPackageImpl(ExportPackageDescription exportedPackage, BundleLoaderProxy supplier)
           
 
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()
          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.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ExportedPackageImpl

public ExportedPackageImpl(ExportPackageDescription exportedPackage,
                           BundleLoaderProxy supplier)
Method Detail

getName

public java.lang.String getName()
Description copied from interface: ExportedPackage
Returns the name of the package associated with this exported package.

Specified by:
getName in interface ExportedPackage
Returns:
The name of this exported package.

getExportingBundle

public Bundle getExportingBundle()
Description copied from interface: ExportedPackage
Returns the bundle exporting the package associated with this exported package.

Specified by:
getExportingBundle in interface ExportedPackage
Returns:
The exporting bundle, or null if this ExportedPackage object has become stale.

getImportingBundles

public Bundle[] getImportingBundles()
Description copied from interface: ExportedPackage
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().

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

getSpecificationVersion

public java.lang.String getSpecificationVersion()
Description copied from interface: ExportedPackage
Returns the version of this exported package.

Specified by:
getSpecificationVersion in interface ExportedPackage
Returns:
The version of this exported package, or null if no version information is available.

getVersion

public Version getVersion()
Description copied from interface: ExportedPackage
Returns the version of this exported package.

Specified by:
getVersion in interface ExportedPackage
Returns:
The version of this exported package, or Version.emptyVersion if no version information is available.

isRemovalPending

public boolean isRemovalPending()
Description copied from interface: ExportedPackage
Returns true if the package associated with this ExportedPackage object has been exported by a bundle that has been updated or uninstalled.

Specified by:
isRemovalPending in interface ExportedPackage
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.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object