Package org.apache.felix.framework
Class ExportedPackageImpl
java.lang.Object
org.apache.felix.framework.ExportedPackageImpl
- All Implemented Interfaces:
ExportedPackage
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final BundleCapability
private final BundleImpl
private final BundleRevision
private final Felix
private final String
private final Version
-
Constructor Summary
ConstructorsConstructorDescriptionExportedPackageImpl
(Felix felix, BundleImpl exporter, BundleRevision revision, BundleCapability export) -
Method Summary
Modifier and TypeMethodDescriptionReturns the bundle exporting the package associated with this exported package.Bundle[]
Returns the resolved bundles that are currently wired to this exported package.getName()
Returns the name of the package associated with this exported package.Returns the version of this exported package.Returns the version of this exported package.boolean
Returnstrue
if the package associated with thisExportedPackage
object has been exported by a bundle that has been updated or uninstalled.toString()
-
Field Details
-
m_felix
-
m_exportingBundle
-
m_exportingRevision
-
m_export
-
m_pkgName
-
m_version
-
-
Constructor Details
-
ExportedPackageImpl
public ExportedPackageImpl(Felix felix, BundleImpl exporter, BundleRevision revision, BundleCapability export)
-
-
Method Details
-
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
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
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
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
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
-