Package org.osgi.annotation.bundle
Annotation Type Capability
- 
@Documented @Retention(CLASS) @Target({TYPE,PACKAGE}) @Repeatable(Capabilities.class) public @interface CapabilityDefine a capability for a bundle.For example:
@Capability(namespace=ExtenderNamespace.EXTENDER_NAMESPACE, name="osgi.component", version="1.3.0")This annotation is not retained at runtime. It is for use by tools to generate bundle manifests or otherwise process the type or package.
This annotation can be used to annotate an annotation
 
- 
- 
Required Element Summary
Required Elements Modifier and Type Required Element Description java.lang.StringnamespaceThe namespace of this capability. 
- 
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description java.lang.String[]attributeA list of attribute or directive names and values.java.lang.StringeffectiveThe effective time of this capability.java.lang.StringnameThe name of this capability within the namespace.java.lang.Class<?>[]usesA list of classes whose packages are inspected to calculate theusesdirective for this capability.java.lang.StringversionThe version of this capability. 
 - 
 
- 
- 
- 
effective
java.lang.String effective
The effective time of this capability.Specifies the time the capability is available. The OSGi framework resolver only considers capabilities without an effective directive or effective:=resolve. Capabilities with other values for the effective directive can be considered by an external agent.
If not specified, the
effectivedirective is omitted from the capability clause.- Default:
 - "resolve"
 
 
 - 
 
- 
- 
attribute
java.lang.String[] attribute
A list of attribute or directive names and values.Each string should be specified in the form:
"name=value"for attributes."name:type=value"for typed attributes."name:=value"for directives.
- Default:
 - {}
 
 
 - 
 
 -