@ProviderType public interface BundleRequirement extends Requirement
bundle
revision
.Modifier and Type | Method and Description |
---|---|
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 namespace 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.
|
equals, hashCode
BundleRevision getRevision()
boolean matches(BundleCapability capability)
capability
- The capability to match to this requirement.true
if the specified capability has the same
namespace
as this requirement and the
filter for this requirement matches the
attributes of the
specified capability
; false
otherwise.java.lang.String getNamespace()
getNamespace
in interface Requirement
java.util.Map<java.lang.String,java.lang.String> getDirectives()
All requirement directives not specified by the
wiring namespaces
have no specified
semantics and are considered extra user defined information.
getDirectives
in interface Requirement
java.util.Map<java.lang.String,java.lang.Object> getAttributes()
Requirement attributes have no specified semantics and are considered extra user defined information.
getAttributes
in interface Requirement
BundleRevision getResource()
This method returns the same value as getRevision()
.
getResource
in interface Requirement
null
if this requirement is synthesized.Copyright © OSGi Alliance (2000, 2018). All Rights Reserved. Licensed under the OSGi Specification License, Version 2.0