OSGi™ Service Platform
Core Specification

Release 4 Version 4.3

org.osgi.framework.wiring
Interface BundleCapability


public interface BundleCapability

A capability that has been declared from a bundle revision.

ThreadSafe
Consumers of this API must not implement this interface

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 getRevision()
          Returns the bundle revision declaring this capability.
 

Method Detail

getNamespace

java.lang.String getNamespace()
Returns the name space of this 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.

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.

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

getRevision

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

Returns:
The bundle revision declaring this capability.

OSGi™ Service Platform
Core Specification

Release 4 Version 4.3

Copyright © OSGi Alliance (2000, 2012). All Rights Reserved. Licensed under the OSGi Specification License, Version 2.0