|
OSGi™ Core Release 6 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
@ProviderType public interface BundleRequirement
A requirement that has been declared from a bundle
revision.
| Method Summary | |
|---|---|
Map<String,Object> |
getAttributes()
Returns the attributes of this requirement. |
Map<String,String> |
getDirectives()
Returns the directives of this requirement. |
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.String getNamespace()
getNamespace in interface RequirementMap<String,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 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 Requirementnull
if this requirement is synthesized.
|
OSGi™ Core Release 6 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||