Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-13228 Support CDI 1.1
  3. JBIDE-15351

Implement bean discovery in explicit and implicit archives

XMLWordPrintable

      http://docs.jboss.org/cdi/spec/1.1/cdi-spec.html#bean_archive

      1. Create CDI 1.1 project.
      2. Create other CDI 1.1 projects and export them to jars or to class folders,
      these projects may vary in beans.xml:

      • no beans.xml
      • empty beans.xml
      • beans.xml with 1.0 schema
      • beans.xml with 1.1 schema and all possible values
        of bean-discovery-mode attribute ("annotated"/"none"/"all")

      and have classes with and without scope declaration.

      3. Add these archives to classpath of project (1).
      4. Create a bean with injections to types defined in the archives.
      5. Check that injection is satisfied or not according to bean discovery rules given by specification.

      Examples:

      • Archive has no beans.xml: only annotated beans will be resolved;
      • Archive has empty beans.xml, or beans.xml with 1.0 schema: all beans will be resolved;
      • Archive has beans.xml with version 1.1: beans will be resolved according to the value of bean-discovery-attribute.

              scabanovich Viacheslav Kabanovich (Inactive)
              scabanovich Viacheslav Kabanovich (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: