Class SimpleHostedCapability
java.lang.Object
org.apache.felix.framework.resolver.SimpleHostedCapability
- All Implemented Interfaces:
HostedCapability, BundleCapability, Capability
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the attributes of this capability.Returns the directives of this capability.Returns the namespace of this capability.Returns the resource declaring this capability.Returns the bundle revision declaring this capability.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Capability
equals, hashCode
-
Field Details
-
m_host
-
m_cap
-
-
Constructor Details
-
SimpleHostedCapability
SimpleHostedCapability(BundleRevision host, BundleCapability cap)
-
-
Method Details
-
getResource
Description copied from interface:BundleCapabilityReturns the resource declaring this capability.This method returns the same value as
BundleCapability.getRevision().- Specified by:
getResourcein interfaceBundleCapability- Specified by:
getResourcein interfaceCapability- Returns:
- The resource declaring this capability.
-
getRevision
Description copied from interface:BundleCapabilityReturns the bundle revision declaring this capability.- Specified by:
getRevisionin interfaceBundleCapability- Specified by:
getRevisionin interfaceHostedCapability- Returns:
- The bundle revision declaring this capability.
-
getDeclaredCapability
- Specified by:
getDeclaredCapabilityin interfaceHostedCapability
-
getNamespace
Description copied from interface:BundleCapabilityReturns the namespace of this capability.- Specified by:
getNamespacein interfaceBundleCapability- Specified by:
getNamespacein interfaceCapability- Returns:
- The namespace of this capability.
-
getDirectives
Description copied from interface:BundleCapabilityReturns 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 interfaceBundleCapability- Specified by:
getDirectivesin interfaceCapability- Returns:
- An unmodifiable map of directive names to directive values for this capability, or an empty map if this capability has no directives.
-
getAttributes
Description copied from interface:BundleCapabilityReturns the attributes of this capability.- Specified by:
getAttributesin interfaceBundleCapability- Specified by:
getAttributesin interfaceCapability- Returns:
- An unmodifiable map of attribute names to attribute values for this capability, or an empty map if this capability has no attributes.
-