public interface Requirement
Resource
.Modifier and Type | Method and Description |
---|---|
Map<String,Object> |
getAttributes()
Returns the attributes of this requirement.
|
Map<String,String> |
getDirectives()
Returns the directives of this requirement.
|
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.
|
String getNamespace()
Map<String,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.
Map<String,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.Copyright © 2006–2016 The Apache Software Foundation. All rights reserved.