|
OSGi™ Core Release 5 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface BundleRequirement
A requirement that has been declared from a bundle
revision
.
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 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. |
Methods inherited from interface org.osgi.resource.Requirement |
---|
equals, hashCode |
Method Detail |
---|
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.
|
OSGi™ Core Release 5 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |