Interface ExportedPackage
-
public interface ExportedPackageDeprecated.The PackageAdmin service has been replaced by theorg.osgi.framework.wiringpackage.An exported package. Objects implementing this interface are created by the Package Admin service.The term exported package refers to a package that has been exported from a resolved bundle. This package may or may not be currently wired to other bundles.
The information about an exported package provided by this object may change. An
ExportedPackageobject becomes stale if the package it references has been updated or removed as a result of callingPackageAdmin.refreshPackages(). If this object becomes stale, itsgetName()andgetVersion()methods continue to return their original values,isRemovalPending()returnstrue, andgetExportingBundle()andgetImportingBundles()returnnull.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description BundlegetExportingBundle()Deprecated.Returns the bundle exporting the package associated with this exported package.Bundle[]getImportingBundles()Deprecated.Returns the resolved bundles that are currently wired to this exported package.java.lang.StringgetName()Deprecated.Returns the name of the package associated with this exported package.java.lang.StringgetSpecificationVersion()Deprecated.As of 1.2.VersiongetVersion()Deprecated.Returns the version of this exported package.booleanisRemovalPending()Deprecated.Returnstrueif the package associated with thisExportedPackageobject has been exported by a bundle that has been updated or uninstalled.
-
-
-
Method Detail
-
getName
java.lang.String getName()
Deprecated.Returns the name of the package associated with this exported package.- Returns:
- The name of this exported package.
-
getExportingBundle
Bundle getExportingBundle()
Deprecated.Returns the bundle exporting the package associated with this exported package.- Returns:
- The exporting bundle, or
nullif thisExportedPackageobject has become stale.
-
getImportingBundles
Bundle[] getImportingBundles()
Deprecated.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().- 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.
-
getSpecificationVersion
java.lang.String getSpecificationVersion()
Deprecated.As of 1.2. Replaced bygetVersion().Returns the version of this exported package.- Returns:
- The version of this exported package, or
nullif no version information is available.
-
getVersion
Version getVersion()
Deprecated.Returns the version of this exported package.- Returns:
- The version of this exported package, or
Version.emptyVersionif no version information is available. - Since:
- 1.2
-
isRemovalPending
boolean isRemovalPending()
Deprecated.Returnstrueif the package associated with thisExportedPackageobject has been exported by a bundle that has been updated or uninstalled.- Returns:
trueif the associated package is being exported by a bundle that has been updated or uninstalled, or if thisExportedPackageobject has become stale;falseotherwise.
-
-