Class SimpleHostedCapability
- java.lang.Object
-
- org.apache.felix.framework.resolver.SimpleHostedCapability
-
- All Implemented Interfaces:
HostedCapability,BundleCapability,Capability
class SimpleHostedCapability extends java.lang.Object implements HostedCapability
-
-
Field Summary
Fields Modifier and Type Field Description private BundleCapabilitym_capprivate BundleRevisionm_host
-
Constructor Summary
Constructors Constructor Description SimpleHostedCapability(BundleRevision host, BundleCapability cap)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Map<java.lang.String,java.lang.Object>getAttributes()Returns the attributes of this capability.BundleCapabilitygetDeclaredCapability()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.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.osgi.resource.Capability
equals, hashCode
-
-
-
-
Field Detail
-
m_host
private final BundleRevision m_host
-
m_cap
private final BundleCapability m_cap
-
-
Constructor Detail
-
SimpleHostedCapability
SimpleHostedCapability(BundleRevision host, BundleCapability cap)
-
-
Method Detail
-
getResource
public BundleRevision 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
public BundleRevision 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
public BundleCapability getDeclaredCapability()
- Specified by:
getDeclaredCapabilityin interfaceHostedCapability
-
getNamespace
public java.lang.String 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
public java.util.Map<java.lang.String,java.lang.String> 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
public java.util.Map<java.lang.String,java.lang.Object> 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.
-
-