org.osgi.framework.resource
Interface Capability

All Known Subinterfaces:
BundleCapability
All Known Implementing Classes:
HostedCapability

public interface Capability

A capability that has been declared from a Resource.

Version:
$Id: 5597c6dd01b34d5e3a2ec05f83b6f895f114d45a $

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.
 Resource getResource()
          Returns the resource 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.

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.

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.

getResource

Resource getResource()
Returns the resource declaring this capability.

Returns:
The resource declaring this capability.


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