Annotation Type 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.
    Author:
    $Id: de7b58a7dab90caf30c61cae23e53c23d73d64e1 $
    • Optional Element Summary

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

      • descriptor

        @Attribute
        java.lang.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
        java.lang.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:
        {}