类 WrappedCapability
- java.lang.Object
-
- org.apache.felix.framework.wiring.BundleCapabilityImpl
-
- org.apache.felix.framework.resolver.WrappedCapability
-
- 所有已实现的接口:
HostedCapability,BundleCapability,Capability
public class WrappedCapability extends BundleCapabilityImpl implements HostedCapability
-
-
字段概要
-
从类继承的字段 org.apache.felix.framework.wiring.BundleCapabilityImpl
VERSION_ATTR
-
-
构造器概要
构造器 构造器 说明 WrappedCapability(BundleRevision host, BundleCapabilityImpl cap)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 booleanequals(java.lang.Object obj)Compares thisCapabilityto anotherCapability.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.java.util.List<java.lang.String>getUses()inthashCode()Returns the hashCode of thisCapability.java.lang.StringtoString()-
从类继承的方法 org.apache.felix.framework.wiring.BundleCapabilityImpl
isAttributeMandatory, isIncluded
-
-
-
-
构造器详细资料
-
WrappedCapability
public WrappedCapability(BundleRevision host, BundleCapabilityImpl cap)
-
-
方法详细资料
-
equals
public boolean equals(java.lang.Object obj)
从接口复制的说明:CapabilityCompares thisCapabilityto anotherCapability.This
Capabilityis equal to anotherCapabilityif they have the same namespace, directives and attributes and are declared by the same resource.- 指定者:
equals在接口中Capability- 覆盖:
equals在类中java.lang.Object- 参数:
obj- The object to compare against thisCapability.- 返回:
trueif thisCapabilityis equal to the other object;falseotherwise.
-
hashCode
public int hashCode()
从接口复制的说明:CapabilityReturns the hashCode of thisCapability.- 指定者:
hashCode在接口中Capability- 覆盖:
hashCode在类中java.lang.Object- 返回:
- The hashCode of this
Capability.
-
getDeclaredCapability
public BundleCapability getDeclaredCapability()
- 指定者:
getDeclaredCapability在接口中HostedCapability
-
getResource
public BundleRevision getResource()
从接口复制的说明:BundleCapabilityReturns the resource declaring this capability.This method returns the same value as
BundleCapability.getRevision().- 指定者:
getResource在接口中BundleCapability- 指定者:
getResource在接口中Capability- 覆盖:
getResource在类中BundleCapabilityImpl- 返回:
- The resource declaring this capability.
-
getRevision
public BundleRevision getRevision()
从接口复制的说明:BundleCapabilityReturns the bundle revision declaring this capability.- 指定者:
getRevision在接口中BundleCapability- 指定者:
getRevision在接口中HostedCapability- 覆盖:
getRevision在类中BundleCapabilityImpl- 返回:
- The bundle revision declaring this capability.
-
getNamespace
public java.lang.String getNamespace()
从接口复制的说明:BundleCapabilityReturns the namespace of this capability.- 指定者:
getNamespace在接口中BundleCapability- 指定者:
getNamespace在接口中Capability- 覆盖:
getNamespace在类中BundleCapabilityImpl- 返回:
- The namespace of this capability.
-
getDirectives
public java.util.Map<java.lang.String,java.lang.String> getDirectives()
从接口复制的说明: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.- 指定者:
getDirectives在接口中BundleCapability- 指定者:
getDirectives在接口中Capability- 覆盖:
getDirectives在类中BundleCapabilityImpl- 返回:
- 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()
从接口复制的说明:BundleCapabilityReturns the attributes of this capability.- 指定者:
getAttributes在接口中BundleCapability- 指定者:
getAttributes在接口中Capability- 覆盖:
getAttributes在类中BundleCapabilityImpl- 返回:
- An unmodifiable map of attribute names to attribute values for this capability, or an empty map if this capability has no attributes.
-
getUses
public java.util.List<java.lang.String> getUses()
- 覆盖:
getUses在类中BundleCapabilityImpl
-
toString
public java.lang.String toString()
- 覆盖:
toString在类中BundleCapabilityImpl
-
-