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.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Class<?>[]
    Specify OSGi Beans classes to be used by the CDI container.
    Specify CDI bean descriptor file paths to be searched on the Bundle-ClassPath.
  • Element Details

    • descriptor

      @Attribute String[] descriptor
      Specify CDI bean descriptor file paths to be searched on the Bundle-ClassPath. For example:

       @RequireCDIExtender(descriptor = "META-INF/beans.xml")
       
      Returns:
      CDI bean descriptor file paths.
      Default:
      {"META-INF/beans.xml"}
    • beans

      @Attribute 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:
      OSGi Beans classes to be used by the CDI container.
      Default:
      {}