For a bundle that has not been uninstalled, the most recent bundle revision
is defined to be the current bundle revision. A bundle in the UNINSTALLED
state does not have a current revision. The current bundle revision for a
bundle can be obtained by calling bundle.
(BundleRevision.class). Since a bundle in the UNINSTALLED state does not have
a current revision, adapting such a bundle returns null.
The framework defines namespaces for package,
bundle and host capabilities
and requirements. These namespaces are defined only to express wiring
information by the framework. They must not be used in
Provide-Capability and
Require-Capability manifest headers.
| Modifier and Type | Field and Description |
|---|---|
| public static final String | BUNDLE_NAMESPACE
Namespace for bundle capabilities and requirements. |
| public static final String | HOST_NAMESPACE
Namespace for host capabilities and requirements. |
| public static final String | PACKAGE_NAMESPACE
Namespace for package capabilities and requirements. |
| public static final int | TYPE_FRAGMENT
Bundle revision type indicating the bundle revision is a fragment. |
| Modifier and Type | Method and Description |
|---|---|
| public List | Returns: An unmodifiable list containing the declaredCapabilitys
from the specified namespace. The returned list will be empty if
this resource declares no capabilities in the specified
namespace.The namespace of the declared capabilities to return or
namespace)null to return the declared capabilities from all
namespaces.Redeclares org. Returns the capabilities declared by this resource. |
| public List | Returns: An unmodifiable list containing the declaredBundleCapabilitys from the specified namespace. The
returned list will be empty if this bundle revision declares no
capabilities in the specified namespace. The list contains the
declared capabilities in the order they are specified in the
manifest.The namespace of the declared capabilities to return or
namespace)null to return the declared capabilities from all
namespaces.Returns the capabilities declared by this bundle revision. |
| public List | Returns: An unmodifiable list containing the declaredBundleRequirements from the specified namespace. The
returned list will be empty if this bundle revision declares no
requirements in the specified namespace. The list contains the
declared requirements in the order they are specified in the
manifest.The namespace of the declared requirements to return or
namespace)null to return the declared requirements from all
namespaces.Returns the requirements declared by this bundle revision. |
| public List | Returns: An unmodifiable list containing the declaredRequirement
s from the specified namespace. The returned list will be empty
if this resource declares no requirements in the specified
namespace.The namespace of the declared requirements to return or
namespace)null to return the declared requirements from all
namespaces.Redeclares org. Returns the requirements declared by this bundle resource. |
| public String | Returns: The symbolic name for this bundle revision.Returns the symbolic name for this bundle revision. |
| public int | Returns: The special types of this bundle revision. The type values are ORed together.Returns the special types of this bundle revision. |
| public Version | Returns: The version for this bundle revision, orVersion#emptyVersion if this bundle revision has no
version information.Returns the version for this bundle revision. |
| public BundleWiring | Returns: The bundle wiring which is using this bundle revision ornull if no bundle wiring is using this bundle revision.Returns the bundle wiring which is using this bundle revision. |
| BUNDLE_NAMESPACE | back to summary |
|---|---|
| public static final String BUNDLE_NAMESPACE Namespace for bundle capabilities and requirements.
The bundle symbolic name of the bundle is stored in the capability
attribute of the same name as this namespace (osgi.wiring.bundle). The
other directives and attributes of the bundle, from the
A non-fragment revision
A bundle wiring for a non-fragment revision
† A bundle with no bundle symbolic name (that is, a bundle with
| |
| HOST_NAMESPACE | back to summary |
|---|---|
| public static final String HOST_NAMESPACE Namespace for host capabilities and requirements.
The bundle symbolic name of the bundle is stored in the capability
attribute of the same name as this namespace (osgi.wiring.host). The
other directives and attributes of the bundle, from the
A non-fragment revision
A bundle wiring for a non-fragment revision
† A bundle with no bundle symbolic name (that is, a bundle with
| |
| PACKAGE_NAMESPACE | back to summary |
|---|---|
| public static final String PACKAGE_NAMESPACE Namespace for package capabilities and requirements.
The name of the package is stored in the capability attribute of the same
name as this namespace (osgi.wiring.package). The other directives and
attributes of the package, from the
The package capabilities provided by the system bundle, that is the
bundle with id zero, must include the package specified by the
A bundle revision
A bundle wiring
| |
| TYPE_FRAGMENT | back to summary |
|---|---|
| public static final int TYPE_FRAGMENT Bundle revision type indicating the bundle revision is a fragment.
| |
| getCapabilities | back to summary |
|---|---|
| public List Redeclares org. Returns the capabilities declared by this resource.
This method returns the same value as
| |
| getDeclaredCapabilities | back to summary |
|---|---|
| public List Returns the capabilities declared by this bundle revision.
| |
| getDeclaredRequirements | back to summary |
|---|---|
| public List Returns the requirements declared by this bundle revision.
| |
| getRequirements | back to summary |
|---|---|
| public List Redeclares org. Returns the requirements declared by this bundle resource.
This method returns the same value as
| |
| getSymbolicName | back to summary |
|---|---|
| public String getSymbolicName() Returns the symbolic name for this bundle revision.
| |
| getTypes | back to summary |
|---|---|
| public int getTypes() Returns the special types of this bundle revision. The bundle revision type values are: A bundle revision may be more than one type at a time. A type code is used to identify the bundle revision type for future extendability.If this bundle revision is not one or more of the defined types then 0 is returned.
| |
| getVersion | back to summary |
|---|---|
| public Version getVersion() Returns the version for this bundle revision.
| |
| getWiring | back to summary |
|---|---|
| public BundleWiring getWiring() Returns the bundle wiring which is using this bundle revision.
| |