org.osgi.framework.wiring
Interface BundleCapability

All Superinterfaces:
Capability

public interface BundleCapability
extends Capability

A capability that has been declared from a bundle revision.

Version:
$Id: 8b31e9d8c679fb43c586e1b6a464d46be6b35099 $

Method Summary
 java.util.Map<java.lang.String,java.lang.Object> getAttributes()
          Returns the attributes of this capability.
 java.util.Map<java.lang.String,java.lang.String> getDirectives()
          Returns the directives of this capability.
 java.lang.String getNamespace()
          Returns the name space of this capability.
 BundleRevision getResource()
          Returns the resource declaring this capability.
 BundleRevision getRevision()
          Returns the bundle revision declaring this capability.
 

Method Detail

getRevision

BundleRevision getRevision()
Returns the bundle revision declaring this capability.

Returns:
The bundle revision declaring this capability.

getNamespace

java.lang.String getNamespace()
Returns the name space of this capability.

Specified by:
getNamespace in interface Capability
Returns:
The name space of this capability.

getDirectives

java.util.Map<java.lang.String,java.lang.String> getDirectives()
Returns the directives of this capability.

Only the following list of directives have specified semantics:

All other directives have no specified semantics and are considered extra user defined information. The OSGi Alliance reserves the right to extend the set of directives which have specified semantics.

Specified by:
getDirectives in interface Capability
Returns:
An unmodifiable map of directive names to directive values for this capability, or an empty map if this capability has no directives.

getAttributes

java.util.Map<java.lang.String,java.lang.Object> getAttributes()
Returns the attributes of this capability.

Specified by:
getAttributes in interface Capability
Returns:
An unmodifiable map of attribute names to attribute values for this capability, or an empty map if this capability has no attributes.

getResource

BundleRevision getResource()
Returns the resource declaring this capability.

This method returns the same value as getRevision().

Specified by:
getResource in interface Capability
Returns:
The resource declaring this capability.
Since:
1.1


Copyright © 2006-2012 The Apache Software Foundation. All Rights Reserved.