Interface ExportPackageDescription
- All Superinterfaces:
BaseDescription
This class represents a specific version of an exported package in the
system.
This interface is not intended to be implemented by clients. The
StateObjectFactory
should be used to construct instances.
- Since:
- 3.1
- Restriction:
- This interface is not intended to be implemented by clients.
-
Method Summary
Modifier and TypeMethodDescriptionReturns the arbitrary attributes for this package.getDirective
(String key) Returns the specified directive for this package.Returns the directives for this package.Returns the exporter of this package.boolean
isRoot()
Deprecated.all export package descriptions are roots.Methods inherited from interface org.eclipse.osgi.service.resolver.BaseDescription
getCapability, getDeclaredAttributes, getDeclaredDirectives, getName, getSupplier, getUserObject, getVersion, setUserObject
-
Method Details
-
isRoot
boolean isRoot()Deprecated.all export package descriptions are roots. The Reexport-Package header never became API.Returns true if the export package is a root package; false otherwise. A ExportPackageDescription is not a root package the exporting bundle is re-exporting the package using the Reexport-Package header.- Returns:
- true if the export package is a root package; false otherwise
-
getAttributes
Returns the arbitrary attributes for this package.- Returns:
- the arbitrary attributes for this package
-
getDirectives
Returns the directives for this package.- Returns:
- the directives for this package
-
getDirective
Returns the specified directive for this package.- Parameters:
key
- the directive to fetch- Returns:
- the specified directive for this package
-
getExporter
BundleDescription getExporter()Returns the exporter of this package.- Returns:
- the exporter of this package.
-