@Retention(value=CLASS)
@Target(value={ANNOTATION_TYPE,TYPE})
public @interface RequireCapability
About| Modifier and Type | Required Element and Description |
|---|---|
java.lang.String |
filter
A filter expression that is asserted on the Capabilities belonging to the
given namespace.
|
java.lang.String |
ns
The capability namespace.
|
| Modifier and Type | Optional Element and Description |
|---|---|
java.lang.String |
effective
Specifies the time a Requirement is considered, either 'resolve'
(default) or another name.
|
Resolution |
resolution
A mandatory Requirement forbids the bundle to resolve when the
Requirement is not satisfied; an optional Requirement allows a bundle to
resolve even if the Requirement is not satisfied.
|
java.lang.String |
value |
public abstract java.lang.String ns
osgi.contract.public abstract java.lang.String filter
(&(a=1)(b=2))
matches only a Capability that specifies both attributes at the required
value, not two capabilties that each specify one of the attributes
correctly. A filter is optional, if no filter directive is specified the
Requirement always matches.public abstract java.lang.String value
public abstract java.lang.String effective
public abstract Resolution resolution