@Retention(value=CLASS) @Target(value={PACKAGE,TYPE}) @Repeatable(value=RequireCDIExtensions.class) @Requirement(namespace="osgi.cdi.extension", name="${#value}", attribute={"${if;${size;${#version}};version=${#version}}","${if;${size;${#effective}};effective:=${#effective}}","${if;${is;${#resolution};default};;resolution:=${#resolution}}"}) public @interface RequireCDIExtension
| Modifier and Type | Fields and Description |
|---|---|
static String |
EFFECTIVE_MACRO |
static String |
RESOLUTION_MACRO |
static String |
VALUE_MACRO |
static String |
VERSION_MACRO |
| Modifier and Type | Required Element and Description |
|---|---|
String |
value
The name of the required extension.
|
| Modifier and Type | Optional Element and Description |
|---|---|
String |
effective
The effective time of the
osgi.extender requirement. |
aQute.bnd.annotation.Resolution |
resolution
The resolution policy of the
osgi.extender requirement. |
String |
version
The version of the required extension.
|
public static final String VALUE_MACRO
public static final String EFFECTIVE_MACRO
public static final String RESOLUTION_MACRO
public static final String VERSION_MACRO
public abstract String value
public abstract String version
If not specified, the version directive is omitted from the
requirement clause.
public abstract String effective
osgi.extender requirement.
Specifies the time the osgi.extender requirements are available.
The OSGi framework resolver only considers requirements without an
effective directive or effective:=resolve. Requirements with
other values for the effective directive can be considered by an external
agent.
If not specified, the effective directive is omitted from the
requirement clause.
public abstract aQute.bnd.annotation.Resolution resolution
osgi.extender requirement.
A mandatory requirement forbids the bundle to resolve when this requirement is not satisfied; an optional requirement allows a bundle to resolve even if this requirement is not satisfied.
If not specified, the resolution directive is omitted from the
requirement clause.
Copyright © 2020 The Apache Software Foundation. All rights reserved.