Class ExportedPackageImpl
java.lang.Object
org.apache.felix.framework.ExportedPackageImpl
- All Implemented Interfaces:
ExportedPackage
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final BundleCapabilityprivate final BundleImplprivate final BundleRevisionprivate final Felixprivate final Stringprivate 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.booleanReturnstrueif the package associated with thisExportedPackageobject 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:ExportedPackageReturns the bundle exporting the package associated with this exported package.- Specified by:
getExportingBundlein interfaceExportedPackage- Returns:
- The exporting bundle, or
nullif thisExportedPackageobject has become stale.
-
getImportingBundles
Description copied from interface:ExportedPackageReturns 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:
getImportingBundlesin interfaceExportedPackage- Returns:
- The array of resolved bundles currently wired to this exported
package, or
nullif thisExportedPackageobject has become stale. The array will be empty if no bundles are wired to this exported package.
-
getName
Description copied from interface:ExportedPackageReturns the name of the package associated with this exported package.- Specified by:
getNamein interfaceExportedPackage- Returns:
- The name of this exported package.
-
getSpecificationVersion
Description copied from interface:ExportedPackageReturns the version of this exported package.- Specified by:
getSpecificationVersionin interfaceExportedPackage- Returns:
- The version of this exported package, or
nullif no version information is available.
-
getVersion
Description copied from interface:ExportedPackageReturns the version of this exported package.- Specified by:
getVersionin interfaceExportedPackage- Returns:
- The version of this exported package, or
Version.emptyVersionif no version information is available.
-
isRemovalPending
public boolean isRemovalPending()Description copied from interface:ExportedPackageReturnstrueif the package associated with thisExportedPackageobject has been exported by a bundle that has been updated or uninstalled.- Specified by:
isRemovalPendingin interfaceExportedPackage- Returns:
trueif the associated package is being exported by a bundle that has been updated or uninstalled, or if thisExportedPackageobject has become stale;falseotherwise.
-
toString
-