|
||||||||||
| 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 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. |
| Methods inherited from interface org.osgi.framework.resource.Requirement |
|---|
matches |
| Method Detail |
|---|
BundleRevision 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.java.lang.String getNamespace()
getNamespace in interface Requirementjava.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.
getDirectives in interface Requirementjava.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 RequirementBundleRevision getResource()
This method returns the same value as getRevision().
getResource in interface Requirement
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||