|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||
@Retention(value=CLASS)
@Target(value={ANNOTATION_TYPE,TYPE})
public @interface ProvideCapabilityDefine a Provide Capability clause in the manifest.
Since this annotation can only be applied once, it is possible to create an annotation that models a specific capability. For example:
interface Webserver {
| Required Element Summary | |
|---|---|
String |
ns
The capability namespace. |
| Optional Element Summary | |
|---|---|
String |
effective
Effective time. |
String[] |
mandatory
Mandatory attributes. |
String |
name
The name of the capability. |
String[] |
uses
The uses directive lists package names that are used by this Capability. |
String |
value
Appended at the end of the clause (after a ';'). |
String |
version
The version of the capability. |
| Element Detail |
|---|
public abstract String ns
osgi.contract.
public abstract String value
public abstract String name
value() to be used to specify the name of
the capability, if needed. For example aQute.sse.
public abstract String version
public abstract String effective
public abstract String[] uses
public abstract String[] mandatory
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||