Package org.osgi.service.cdi.annotations
Annotation Interface RequireCDIExtender
@Documented
@Retention(CLASS)
@Target({TYPE,PACKAGE})
@Requirement(namespace="osgi.extender",
name="osgi.cdi",
version="1.0")
public @interface RequireCDIExtender
This annotation can be used to require the CDI Component Runtime extender. It
can be used directly, or as a meta-annotation.
-
Element Details
-
descriptor
Specify CDI bean descriptor file paths to be searched on theBundle-ClassPath
. For example:@RequireCDIExtender(descriptor = "META-INF/beans.xml")
- Returns:
- CDI bean descriptor file paths.
- Default:
- {"META-INF/beans.xml"}
-
beans
Specify OSGi Beans classes to be used by the CDI container. For example:@RequireCDIExtender(beans = {com.foo.BarImpl.class, com.foo.impl.BazImpl.class})
- Returns:
- OSGi Beans classes to be used by the CDI container.
- Default:
- {}
-