Class ExportedPackageImpl

java.lang.Object
org.apache.felix.framework.ExportedPackageImpl
All Implemented Interfaces:
ExportedPackage

class ExportedPackageImpl extends Object implements ExportedPackage
  • Field Details

    • 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 String m_pkgName
    • m_version

      private final Version m_version
  • Constructor Details

  • Method Details

    • getExportingBundle

      public Bundle getExportingBundle()
      Description copied from interface: ExportedPackage
      Returns the bundle exporting the package associated with this exported package.
      Specified by:
      getExportingBundle in interface ExportedPackage
      Returns:
      The exporting bundle, or null if this ExportedPackage 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 interface ExportedPackage
      Returns:
      The array of resolved bundles currently wired to this exported package, or null if this ExportedPackage object has become stale. The array will be empty if no bundles are wired to this exported package.
    • getName

      public String getName()
      Description copied from interface: ExportedPackage
      Returns the name of the package associated with this exported package.
      Specified by:
      getName in interface ExportedPackage
      Returns:
      The name of this exported package.
    • getSpecificationVersion

      public String getSpecificationVersion()
      Description copied from interface: ExportedPackage
      Returns the version of this exported package.
      Specified by:
      getSpecificationVersion in interface ExportedPackage
      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 interface ExportedPackage
      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
      Returns true if the package associated with this ExportedPackage object has been exported by a bundle that has been updated or uninstalled.
      Specified by:
      isRemovalPending in interface ExportedPackage
      Returns:
      true 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.
    • toString

      public String toString()
      Overrides:
      toString in class Object