|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Requirement
A requirement that has been declared from a Resource .
| Method Summary | |
|---|---|
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. |
Resource |
getResource()
Returns the resource declaring this requirement. |
boolean |
matches(Capability capability)
Returns whether the specified capability matches this requirement. |
| Method Detail |
|---|
java.lang.String getNamespace()
java.util.Map<java.lang.String,java.lang.String> getDirectives()
Only the following list of directives have specified semantics:
effective
filter
cardinality
resolution
visibility
- only recognized for the
osgi.wiring.bundle name
space.
java.util.Map<java.lang.String,java.lang.Object> getAttributes()
Requirement attributes have no specified semantics and are considered extra user defined information.
Resource getResource()
boolean matches(Capability capability)
A 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.
capability - The capability to match to this requirement.
true if the specified capability matches this this
requirement; false otherwise.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||