Top Description Methods
org.osgi.service.cdi.annotations

public @Interface RequireCDIExtender

extends Annotation
Annotations
@Documented
@Retention:CLASS
@Target:TYPE, PACKAGE
@Requirement
namespace:osgi.extender
name:osgi.cdi
version:1.0
Static Imports
java.lang.annotation.ElementType.PACKAGE, .ElementType.TYPE, .RetentionPolicy.CLASS, org.osgi.namespace.extender.ExtenderNamespace.EXTENDER_NAMESPACE, org.osgi.service.cdi.CDIConstants.CDI_CAPABILITY_NAME, .CDIConstants.CDI_SPECIFICATION_VERSION

This annotation can be used to require the CDI Component Runtime extender. It can be used directly, or as a meta-annotation.
Author
$Id: de7b58a7dab90caf30c61cae23e53c23d73d64e1 $

Method Summary

Modifier and TypeMethod and Description
public Class<?>[]

Returns:

OSGi Beans classes to be used by the CDI container.
beans
()

Specify OSGi Beans classes to be used by the CDI container.

public String[]

Returns:

CDI bean descriptor file paths.
descriptor
()

Specify CDI bean descriptor file paths to be searched on the Bundle-ClassPath.

Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString

Method Detail

beansback to summary
public Class<?>[] 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:Class<?>[]

OSGi Beans classes to be used by the CDI container.

Annotations
@Attribute
descriptorback to summary
public String[] descriptor()

Specify CDI bean descriptor file paths to be searched on the Bundle-ClassPath. For example:

@RequireCDIExtender(descriptor = "META-INF/beans.xml")
Returns:String[]

CDI bean descriptor file paths.

Annotations
@Attribute