Package org.apache.felix.resolver
Class WrappedCapability
java.lang.Object
org.apache.felix.resolver.WrappedCapability
- All Implemented Interfaces:
org.osgi.resource.Capability
,HostedCapability
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionWrappedCapability
(org.osgi.resource.Resource host, org.osgi.resource.Capability cap) -
Method Summary
-
Field Details
-
m_host
private final org.osgi.resource.Resource m_host -
m_cap
private final org.osgi.resource.Capability m_cap
-
-
Constructor Details
-
WrappedCapability
public WrappedCapability(org.osgi.resource.Resource host, org.osgi.resource.Capability cap)
-
-
Method Details
-
equals
-
hashCode
public int hashCode() -
getDeclaredCapability
public org.osgi.resource.Capability getDeclaredCapability()Description copied from interface:HostedCapability
Return the Capability hosted by the Resource.- Specified by:
getDeclaredCapability
in interfaceHostedCapability
- Returns:
- The Capability hosted by the Resource.
-
getResource
public org.osgi.resource.Resource getResource()Description copied from interface:HostedCapability
Return the Resource that hosts this Capability.- Specified by:
getResource
in interfaceorg.osgi.resource.Capability
- Specified by:
getResource
in interfaceHostedCapability
- Returns:
- The Resource that hosts this Capability.
-
getNamespace
- Specified by:
getNamespace
in interfaceorg.osgi.resource.Capability
-
getDirectives
- Specified by:
getDirectives
in interfaceorg.osgi.resource.Capability
-
getAttributes
- Specified by:
getAttributes
in interfaceorg.osgi.resource.Capability
-
toString
-