Uploaded image for project: 'CDI Specification Issues'
  1. CDI Specification Issues
  2. CDI-346

Unclear relation between bean discovery and @WithAnnotations

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 1.1.FD
    • 1.1.PFD
    • None
    • None

    Description

      First the container must discover types. The container discovers:
      • each Java class, interface or enum deployed in an explicit bean archive, and
      • each Java class interface, or enum with a bean defining annotation in an implicit bean archive.
      • each session bean
      that is not excluded from discovery.
      Then, container must create an AnnotatedType representing the type and fire an event of type ProcessAnnotatedType,
      as defined in Section 11.5.6, for:
      • every type discovered
      • each Java class, interface or enum that must be delivered to a ProcessAnnotatedType observer, where the event parameter
      is annotated with @WithAnnotations.

      Having a class
      a) in an implicit bean archive
      b) outside of bean archive
      that does not define a bean defining annotation and the class must be delivered to a @WithAnnotation PAT observer method.

      Should this class result in a bean definition (assuming it fulfils bean requirements)?

      Would not it be easier to add the category of classes that must be delivered to @WithAnnotations PAT observer to the implicit bean archive definition?

      Attachments

        Activity

          People

            pmuiratbleepbleep Pete Muir (Inactive)
            rhn-engineering-jharting Jozef Hartinger
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: