Package org.apache.felix.resolver
Class SimpleHostedCapability
- java.lang.Object
-
- org.apache.felix.resolver.SimpleHostedCapability
-
- All Implemented Interfaces:
org.osgi.resource.Capability,HostedCapability
class SimpleHostedCapability extends java.lang.Object implements HostedCapability
-
-
Constructor Summary
Constructors Constructor Description SimpleHostedCapability(org.osgi.resource.Resource host, org.osgi.resource.Capability cap)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Map<java.lang.String,java.lang.Object>getAttributes()org.osgi.resource.CapabilitygetDeclaredCapability()Return the Capability hosted by the Resource.java.util.Map<java.lang.String,java.lang.String>getDirectives()java.lang.StringgetNamespace()org.osgi.resource.ResourcegetResource()Return the Resource that hosts this Capability.
-
-
-
Method Detail
-
getResource
public org.osgi.resource.Resource getResource()
Description copied from interface:HostedCapabilityReturn the Resource that hosts this Capability.- Specified by:
getResourcein interfaceorg.osgi.resource.Capability- Specified by:
getResourcein interfaceHostedCapability- Returns:
- The Resource that hosts this Capability.
-
getDeclaredCapability
public org.osgi.resource.Capability getDeclaredCapability()
Description copied from interface:HostedCapabilityReturn the Capability hosted by the Resource.- Specified by:
getDeclaredCapabilityin interfaceHostedCapability- Returns:
- The Capability hosted by the Resource.
-
getNamespace
public java.lang.String getNamespace()
- Specified by:
getNamespacein interfaceorg.osgi.resource.Capability
-
getDirectives
public java.util.Map<java.lang.String,java.lang.String> getDirectives()
- Specified by:
getDirectivesin interfaceorg.osgi.resource.Capability
-
getAttributes
public java.util.Map<java.lang.String,java.lang.Object> getAttributes()
- Specified by:
getAttributesin interfaceorg.osgi.resource.Capability
-
-