Top Description Methods
org.osgi.framework.wiring

public Interface BundleCapability

extends Capability
Annotations
@ProviderType
Imports
java.util.Map, org.osgi.annotation.versioning.ProviderType, org.osgi.framework.namespace.AbstractWiringNamespace, org.osgi.resource.Capability

A capability that has been declared from a bundle revision.
Author
$Id: 834fb5779fb3c1b1b16ab25ffa4ab97a131b1262 $

Method Summary

Modifier and TypeMethod and Description
public Map<String, Object>

Returns:

An unmodifiable map of attribute names to attribute values for this capability, or an empty map if this capability has no attributes.
getAttributes
()

Redeclares org.osgi.resource.Capability.getAttributes.

Returns the attributes of this capability.

public Map<String, String>

Returns:

An unmodifiable map of directive names to directive values for this capability, or an empty map if this capability has no directives.
getDirectives
()

Redeclares org.osgi.resource.Capability.getDirectives.

Returns the directives of this capability.

public String

Returns:

The namespace of this capability.
getNamespace
()

Redeclares org.osgi.resource.Capability.getNamespace.

Returns the namespace of this capability.

public BundleRevision

Returns:

The resource declaring this capability.
getResource
()

Redeclares org.osgi.resource.Capability.getResource.

Returns the resource declaring this capability.

public BundleRevision

Returns:

The bundle revision declaring this capability.
getRevision
()

Returns the bundle revision declaring this capability.

Inherited from org.osgi.resource.Capability:
equalshashCode

Method Detail

getAttributesback to summary
public Map<String, Object> getAttributes()

Redeclares org.osgi.resource.Capability.getAttributes.

Returns the attributes of this capability.

Returns:Map<String, Object>

An unmodifiable map of attribute names to attribute values for this capability, or an empty map if this capability has no attributes.

getDirectivesback to summary
public Map<String, String> getDirectives()

Redeclares org.osgi.resource.Capability.getDirectives.

Returns the directives of this capability.

All capability directives not specified by the wiring namespaces have no specified semantics and are considered extra user defined information.

Returns:Map<String, String>

An unmodifiable map of directive names to directive values for this capability, or an empty map if this capability has no directives.

getNamespaceback to summary
public String getNamespace()

Redeclares org.osgi.resource.Capability.getNamespace.

Returns the namespace of this capability.

Returns:String

The namespace of this capability.

getResourceback to summary
public BundleRevision getResource()

Redeclares org.osgi.resource.Capability.getResource.

Returns the resource declaring this capability.

This method returns the same value as getRevision().

Returns:BundleRevision

The resource declaring this capability.

Since
1.1
getRevisionback to summary
public BundleRevision getRevision()

Returns the bundle revision declaring this capability.

Returns:BundleRevision

The bundle revision declaring this capability.