public interface BundleRequirement extends Requirement
bundle
revision.| 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.
|
BundleRevision |
getResource()
Returns the resource declaring this requirement.
|
BundleRevision |
getRevision()
Returns the bundle revision declaring this requirement.
|
boolean |
matches(BundleCapability capability)
Returns whether the specified capability matches this requirement.
|
matchesBundleRevision getRevision()
boolean matches(BundleCapability capability)
capability - The capability to match to this requirement.true if the specified capability has the same
name space as this requirement and the
filter for this requirement matches the
attributes of the
specified capability; false otherwise.String getNamespace()
getNamespace in interface RequirementMap<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.
getDirectives in interface RequirementMap<String,Object> getAttributes()
Requirement attributes have no specified semantics and are considered extra user defined information.
getAttributes in interface RequirementBundleRevision getResource()
This method returns the same value as getRevision().
getResource in interface RequirementCopyright © 2006-2013 The Apache Software Foundation. All Rights Reserved.