org.apache.felix.framework.resolver
Class HostedRequirement

java.lang.Object
  extended by org.apache.felix.framework.wiring.BundleRequirementImpl
      extended by org.apache.felix.framework.resolver.HostedRequirement
All Implemented Interfaces:
BundleRequirement

public class HostedRequirement
extends BundleRequirementImpl


Constructor Summary
HostedRequirement(BundleRevision host, BundleRequirementImpl req)
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.util.Map<java.lang.String,java.lang.Object> getAttributes()
          Returns the attributes of this requirement.
 java.util.Map<java.lang.String,java.lang.String> getDirectives()
          Returns the directives of this requirement.
 SimpleFilter getFilter()
           
 java.lang.String getNamespace()
          Returns the name space of this requirement.
 BundleRequirementImpl getOriginalRequirement()
           
 BundleRevision getRevision()
          Returns the bundle revision declaring this requirement.
 int hashCode()
           
 boolean isOptional()
           
 java.lang.String toString()
           
 
Methods inherited from class org.apache.felix.framework.wiring.BundleRequirementImpl
matches
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HostedRequirement

public HostedRequirement(BundleRevision host,
                         BundleRequirementImpl req)
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

getOriginalRequirement

public BundleRequirementImpl getOriginalRequirement()

getRevision

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

Specified by:
getRevision in interface BundleRequirement
Overrides:
getRevision in class BundleRequirementImpl
Returns:
The bundle revision declaring this requirement.

getNamespace

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

Specified by:
getNamespace in interface BundleRequirement
Overrides:
getNamespace in class BundleRequirementImpl
Returns:
The name space of this requirement.

getFilter

public SimpleFilter getFilter()
Overrides:
getFilter in class BundleRequirementImpl

isOptional

public boolean isOptional()
Overrides:
isOptional in class BundleRequirementImpl

getDirectives

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

Specified by:
getDirectives in interface BundleRequirement
Overrides:
getDirectives in class BundleRequirementImpl
Returns:
An unmodifiable map of directive names to directive values for this requirement, or an empty map if this requirement has no directives.

getAttributes

public java.util.Map<java.lang.String,java.lang.Object> getAttributes()
Description copied from interface: BundleRequirement
Returns the attributes of this requirement.

Specified by:
getAttributes in interface BundleRequirement
Overrides:
getAttributes in class BundleRequirementImpl
Returns:
An unmodifiable map of attribute names to attribute values for this requirement, or an empty map if this requirement has no attributes.

toString

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


Copyright © 2012. All Rights Reserved.