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 BundleCapabilitym_exportprivate BundleImplm_exportingBundleprivate BundleRevisionm_exportingRevisionprivate Felixm_felixprivate java.lang.Stringm_pkgNameprivate Versionm_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 BundlegetExportingBundle()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.StringgetName()Returns the name of the package associated with this exported package.java.lang.StringgetSpecificationVersion()Returns the version of this exported package.VersiongetVersion()Returns the version of this exported package.booleanisRemovalPending()Returnstrueif the package associated with thisExportedPackageobject has been exported by a bundle that has been updated or uninstalled.java.lang.StringtoString()
-
-
-
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: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
public Bundle[] 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
public java.lang.String 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
public java.lang.String 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
public Version 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
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-