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

Possible conflict for Implicit bean archive definition between core and SE

    Details

    • Type: Clarification
    • Status: Open (View Workflow)
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 2.0-EDR2
    • Fix Version/s: TBD
    • Component/s: Java SE Integration
    • Labels:
      None

      Description

      Section 12.1 (which should be satisfied in SE an EE) states:

      An implicit bean archive is any other archive which contains one or more bean classes with a bean defining annotation as defined in Bean defining annotations.

      And section 15.1 reads:

      When running in Java SE, the container must extend the rules defined in Bean archives and also ensure that :
      An archive which doesn’t contain a beans.xml file can’t be discovered as an implicit bean archive unless:

      • the application is launched with system property javax.enterprise.inject.scan.implicit set to true, or
      • the container was initialized with a parameter map containing an entry with javax.enterprise.inject.scan.implicit as key and Boolean.TRUE as value.

      Perhaps this deserve a bit of clarification.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                antoinesabot-durand Antoine Sabot-Durand
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated: