Package org.apache.felix.resolver
Class WrappedCapability
- java.lang.Object
-
- org.apache.felix.resolver.WrappedCapability
-
- All Implemented Interfaces:
org.osgi.resource.Capability
,HostedCapability
public class WrappedCapability extends java.lang.Object implements HostedCapability
-
-
Constructor Summary
Constructors Constructor Description WrappedCapability(org.osgi.resource.Resource host, org.osgi.resource.Capability cap)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
java.util.Map<java.lang.String,java.lang.Object>
getAttributes()
org.osgi.resource.Capability
getDeclaredCapability()
Return the Capability hosted by the Resource.java.util.Map<java.lang.String,java.lang.String>
getDirectives()
java.lang.String
getNamespace()
org.osgi.resource.Resource
getResource()
Return the Resource that hosts this Capability.int
hashCode()
java.lang.String
toString()
-
-
-
Method Detail
-
equals
public boolean equals(java.lang.Object obj)
- Specified by:
equals
in interfaceorg.osgi.resource.Capability
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfaceorg.osgi.resource.Capability
- Overrides:
hashCode
in classjava.lang.Object
-
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
public java.lang.String getNamespace()
- Specified by:
getNamespace
in interfaceorg.osgi.resource.Capability
-
getDirectives
public java.util.Map<java.lang.String,java.lang.String> getDirectives()
- Specified by:
getDirectives
in interfaceorg.osgi.resource.Capability
-
getAttributes
public java.util.Map<java.lang.String,java.lang.Object> getAttributes()
- Specified by:
getAttributes
in interfaceorg.osgi.resource.Capability
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-