class ExportedPackageImpl extends java.lang.Object implements ExportedPackage
| Modifier and Type | Field and Description |
|---|---|
private BundleCapability |
m_export |
private BundleImpl |
m_exportingBundle |
private BundleRevision |
m_exportingRevision |
private Felix |
m_felix |
private java.lang.String |
m_pkgName |
private Version |
m_version |
| Constructor and Description |
|---|
ExportedPackageImpl(Felix felix,
BundleImpl exporter,
BundleRevision revision,
BundleCapability export) |
| Modifier and Type | Method and Description |
|---|---|
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() |
private final Felix m_felix
private final BundleImpl m_exportingBundle
private final BundleRevision m_exportingRevision
private final BundleCapability m_export
private final java.lang.String m_pkgName
private final Version m_version
public ExportedPackageImpl(Felix felix, BundleImpl exporter, BundleRevision revision, BundleCapability export)
public Bundle getExportingBundle()
ExportedPackagegetExportingBundle in interface ExportedPackagenull if this
ExportedPackage object has become stale.public Bundle[] getImportingBundles()
ExportedPackage
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().
getImportingBundles in interface ExportedPackagenull if this
ExportedPackage object has become stale. The array
will be empty if no bundles are wired to this exported package.public java.lang.String getName()
ExportedPackagegetName in interface ExportedPackagepublic java.lang.String getSpecificationVersion()
ExportedPackagegetSpecificationVersion in interface ExportedPackagenull if no
version information is available.public Version getVersion()
ExportedPackagegetVersion in interface ExportedPackageVersion.emptyVersion if no version information is
available.public boolean isRemovalPending()
ExportedPackagetrue if the package associated with this
ExportedPackage object has been exported by a bundle that
has been updated or uninstalled.isRemovalPending in interface ExportedPackagetrue 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.public java.lang.String toString()
toString in class java.lang.Object