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

clarify behaviour of implicit bean archive

    XMLWordPrintable

Details

    Description

      I read chapter "12.1 Bean archives" which defines 'explicit bean archive' and 'implicit bean archive' and following that I removed beans.xml from my existing application only to find out that deployment of my app now fails because of unsatisfied dependencies. It took me a while to figure out the problem: there is behavioural difference between explicit and implicit bean archive which is mentioned later in the middle of chapter "12.4 Bean discovery":

      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.

      The fact that implicit bean archive provides only beans with defining annotations is very important piece of information and I would like to suggest to mention that early in chapter 12.1 when the bean archive concepts are defined. Thanks.

      Attachments

        Activity

          People

            asabotdu@redhat.com Antoine Sabot-Durand (Inactive)
            dkonecny_jira David Konecny (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: