org.apache.felix.framework.resolver
Class HostedCapability

java.lang.Object
  extended by org.apache.felix.framework.wiring.BundleCapabilityImpl
      extended by org.apache.felix.framework.resolver.HostedCapability
All Implemented Interfaces:
BundleCapability

public class HostedCapability
extends BundleCapabilityImpl


Field Summary
 
Fields inherited from class org.apache.felix.framework.wiring.BundleCapabilityImpl
VERSION_ATTR
 
Constructor Summary
HostedCapability(BundleRevision host, BundleCapabilityImpl cap)
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.util.Map<java.lang.String,java.lang.Object> getAttributes()
          Returns the attributes of this capability.
 java.util.Map<java.lang.String,java.lang.String> getDirectives()
          Returns the directives of this capability.
 java.lang.String getNamespace()
          Returns the name space of this capability.
 BundleCapabilityImpl getOriginalCapability()
           
 BundleRevision getRevision()
          Returns the bundle revision declaring this capability.
 java.util.List<java.lang.String> getUses()
           
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class org.apache.felix.framework.wiring.BundleCapabilityImpl
isAttributeMandatory, isIncluded
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HostedCapability

public HostedCapability(BundleRevision host,
                        BundleCapabilityImpl cap)
Method Detail

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

getOriginalCapability

public BundleCapabilityImpl getOriginalCapability()

getRevision

public BundleRevision getRevision()
Description copied from interface: BundleCapability
Returns the bundle revision declaring this capability.

Specified by:
getRevision in interface BundleCapability
Overrides:
getRevision in class BundleCapabilityImpl
Returns:
The bundle revision declaring this capability.

getNamespace

public java.lang.String getNamespace()
Description copied from interface: BundleCapability
Returns the name space of this capability.

Specified by:
getNamespace in interface BundleCapability
Overrides:
getNamespace in class BundleCapabilityImpl
Returns:
The name space of this capability.

getDirectives

public java.util.Map<java.lang.String,java.lang.String> getDirectives()
Description copied from interface: BundleCapability
Returns the directives of this capability.

Specified by:
getDirectives in interface BundleCapability
Overrides:
getDirectives in class BundleCapabilityImpl
Returns:
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()
Description copied from interface: BundleCapability
Returns the attributes of this capability.

Specified by:
getAttributes in interface BundleCapability
Overrides:
getAttributes in class BundleCapabilityImpl
Returns:
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()
Overrides:
getUses in class BundleCapabilityImpl

toString

public java.lang.String toString()
Overrides:
toString in class BundleCapabilityImpl


Copyright © 2012. All Rights Reserved.