Package org.osgi.framework.wiring
Interface BundleCapability
-
- All Superinterfaces:
org.osgi.resource.Capability
@ProviderType public interface BundleCapability extends org.osgi.resource.CapabilityA capability that has been declared from abundle revision.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description 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.StringgetNamespace()Returns the namespace of this capability.BundleRevisiongetResource()Returns the resource declaring this capability.BundleRevisiongetRevision()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 namespace of this capability.- Specified by:
getNamespacein interfaceorg.osgi.resource.Capability- Returns:
- The namespace of this capability.
-
getDirectives
java.util.Map<java.lang.String,java.lang.String> getDirectives()
Returns the directives of this capability.All capability directives not specified by the
wiring namespaceshave no specified semantics and are considered extra user defined information.- Specified by:
getDirectivesin interfaceorg.osgi.resource.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:
getAttributesin interfaceorg.osgi.resource.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:
getResourcein interfaceorg.osgi.resource.Capability- Returns:
- The resource declaring this capability.
- Since:
- 1.1
-
-