Class WrappedCapability
java.lang.Object
org.apache.felix.framework.wiring.BundleCapabilityImpl
org.apache.felix.framework.resolver.WrappedCapability
- All Implemented Interfaces:
HostedCapability
,BundleCapability
,Capability
-
Field Summary
Fields inherited from class org.apache.felix.framework.wiring.BundleCapabilityImpl
VERSION_ATTR
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Compares thisCapability
to anotherCapability
.Returns 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.getUses()
int
hashCode()
Returns the hashCode of thisCapability
.toString()
Methods inherited from class org.apache.felix.framework.wiring.BundleCapabilityImpl
isAttributeMandatory, isIncluded
-
Constructor Details
-
WrappedCapability
-
-
Method Details
-
equals
Description copied from interface:Capability
Compares thisCapability
to anotherCapability
.This
Capability
is equal to anotherCapability
if they have the same namespace, directives and attributes and are declared by the same resource.- Specified by:
equals
in interfaceCapability
- Overrides:
equals
in classObject
- Parameters:
obj
- The object to compare against thisCapability
.- Returns:
true
if thisCapability
is equal to the other object;false
otherwise.
-
hashCode
public int hashCode()Description copied from interface:Capability
Returns the hashCode of thisCapability
.- Specified by:
hashCode
in interfaceCapability
- Overrides:
hashCode
in classObject
- Returns:
- The hashCode of this
Capability
.
-
getDeclaredCapability
- Specified by:
getDeclaredCapability
in interfaceHostedCapability
-
getResource
Description copied from interface:BundleCapability
Returns the resource declaring this capability.This method returns the same value as
BundleCapability.getRevision()
.- Specified by:
getResource
in interfaceBundleCapability
- Specified by:
getResource
in interfaceCapability
- Overrides:
getResource
in classBundleCapabilityImpl
- Returns:
- The resource declaring this capability.
-
getRevision
Description copied from interface:BundleCapability
Returns the bundle revision declaring this capability.- Specified by:
getRevision
in interfaceBundleCapability
- Specified by:
getRevision
in interfaceHostedCapability
- Overrides:
getRevision
in classBundleCapabilityImpl
- Returns:
- The bundle revision declaring this capability.
-
getNamespace
Description copied from interface:BundleCapability
Returns the namespace of this capability.- Specified by:
getNamespace
in interfaceBundleCapability
- Specified by:
getNamespace
in interfaceCapability
- Overrides:
getNamespace
in classBundleCapabilityImpl
- Returns:
- The namespace of this capability.
-
getDirectives
Description copied from interface:BundleCapability
Returns the directives of this capability.All capability directives not specified by the
wiring namespaces
have no specified semantics and are considered extra user defined information.- Specified by:
getDirectives
in interfaceBundleCapability
- Specified by:
getDirectives
in interfaceCapability
- Overrides:
getDirectives
in classBundleCapabilityImpl
- 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:BundleCapability
Returns the attributes of this capability.- Specified by:
getAttributes
in interfaceBundleCapability
- Specified by:
getAttributes
in interfaceCapability
- Overrides:
getAttributes
in classBundleCapabilityImpl
- Returns:
- An unmodifiable map of attribute names to attribute values for this capability, or an empty map if this capability has no attributes.
-
getUses
- Overrides:
getUses
in classBundleCapabilityImpl
-
toString
- Overrides:
toString
in classBundleCapabilityImpl
-