Package org.apache.felix.framework
Class ExportedPackageImpl
- java.lang.Object
-
- org.apache.felix.framework.ExportedPackageImpl
-
- All Implemented Interfaces:
ExportedPackage
class ExportedPackageImpl extends java.lang.Object implements ExportedPackage
-
-
Field Summary
Fields Modifier and Type Field 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 Summary
Constructors Constructor Description ExportedPackageImpl(Felix felix, BundleImpl exporter, BundleRevision revision, BundleCapability export)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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()
Returnstrue
if the package associated with thisExportedPackage
object has been exported by a bundle that has been updated or uninstalled.java.lang.String
toString()
-
-
-
Field Detail
-
m_felix
private final Felix m_felix
-
m_exportingBundle
private final BundleImpl m_exportingBundle
-
m_exportingRevision
private final BundleRevision m_exportingRevision
-
m_export
private final BundleCapability m_export
-
m_pkgName
private final java.lang.String m_pkgName
-
m_version
private final Version m_version
-
-
Constructor Detail
-
ExportedPackageImpl
public ExportedPackageImpl(Felix felix, BundleImpl exporter, BundleRevision revision, BundleCapability export)
-
-
Method Detail
-
getExportingBundle
public Bundle getExportingBundle()
Description copied from interface:ExportedPackage
Returns the bundle exporting the package associated with this exported package.- Specified by:
getExportingBundle
in interfaceExportedPackage
- Returns:
- The exporting bundle, or
null
if thisExportedPackage
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 interfaceExportedPackage
- Returns:
- The array of resolved bundles currently wired to this exported
package, or
null
if thisExportedPackage
object has become stale. The array will be empty if no bundles are wired to this exported package.
-
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 interfaceExportedPackage
- Returns:
- The name of this exported package.
-
getSpecificationVersion
public java.lang.String getSpecificationVersion()
Description copied from interface:ExportedPackage
Returns the version of this exported package.- Specified by:
getSpecificationVersion
in interfaceExportedPackage
- 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 interfaceExportedPackage
- 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
Returnstrue
if the package associated with thisExportedPackage
object has been exported by a bundle that has been updated or uninstalled.- Specified by:
isRemovalPending
in interfaceExportedPackage
- Returns:
true
if the associated package is being exported by a bundle that has been updated or uninstalled, or if thisExportedPackage
object has become stale;false
otherwise.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-