|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.felix.resolver.impl.HostedRequirement
public class HostedRequirement
| Constructor Summary | |
|---|---|
HostedRequirement(Resource host,
Requirement 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. |
java.lang.String |
getNamespace()
Returns the name space of this requirement. |
Requirement |
getOriginalRequirement()
|
Resource |
getResource()
Returns the resource declaring this requirement. |
int |
hashCode()
|
boolean |
matches(Capability capability)
Returns whether the specified capability matches this requirement. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public HostedRequirement(Resource host,
Requirement req)
| Method Detail |
|---|
public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic Requirement getOriginalRequirement()
public Resource getResource()
Requirement
getResource in interface Requirementpublic java.lang.String getNamespace()
Requirement
getNamespace in interface Requirementpublic java.util.Map<java.lang.String,java.lang.String> getDirectives()
RequirementOnly the following list of directives have specified semantics:
effective
filter
cardinality
resolution
visibility
- only recognized for the
osgi.wiring.bundle name
space.
getDirectives in interface Requirementpublic java.util.Map<java.lang.String,java.lang.Object> getAttributes()
RequirementRequirement attributes have no specified semantics and are considered extra user defined information.
getAttributes in interface Requirementpublic boolean matches(Capability capability)
RequirementA capability matches this requirement when all of the following are true:
name
space as this requirement.
filter
directive of this requirement matches the
attributes of the specified capability.
directives
that influence matching and that apply to the name space are satisfied.
See the capability
mandatory
directive.
matches in interface Requirementcapability - The capability to match to this requirement.
true if the specified capability matches this this
requirement; false otherwise.public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||