|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.knopflerfish.framework.ExportedPackageImpl
public class ExportedPackageImpl
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.
| Method Summary | |
|---|---|
Bundle |
getExportingBundle()
Returns the bundle that is exporting this ExportedPackage. |
Bundle[] |
getImportingBundles()
Returns the resolved bundles that are currently importing this ExportedPackage. |
java.lang.String |
getName()
Returns the name of this ExportedPackage. |
java.lang.String |
getSpecificationVersion()
Returns the specification version of this ExportedPackage, as specified in the exporting bundle's manifest file. |
Version |
getVersion()
Returns the version of this exported package. |
boolean |
isRemovalPending()
Returns true if this ExportedPackage 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 |
| Method Detail |
|---|
public java.lang.String getName()
getName in interface ExportedPackagepublic Bundle getExportingBundle()
getExportingBundle in interface ExportedPackagepublic Bundle[] getImportingBundles()
The returned array always includes the bundle returned by
getExportingBundle() since an exporter always implicitly
imports its exported packages.
getImportingBundles in interface ExportedPackagepublic java.lang.String getSpecificationVersion()
getSpecificationVersion in interface ExportedPackagepublic boolean isRemovalPending()
isRemovalPending in interface ExportedPackagepublic Version getVersion()
ExportedPackage
getVersion in interface ExportedPackageVersion.emptyVersion if no version information is
available.public java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||