Uploaded image for project: 'Weld'
  1. Weld
  2. WELD-2766

Specify bean discovery mode for synthetic bean archive for use with Weld.addPackages and @AddPackages


    • Icon: Feature Request Feature Request
    • Resolution: Done
    • Icon: Major Major
    • None
    • None
    • Java SE Support
    • None

      The behaviour changed for synthetic bean archives in 2.4.4.Final and 3.0.1.Final with WELD-2386. The previous behaviour was like an explicit bean archive with bean-discovery-mode="all". This changed to behave like bean-discovery-mode="annotated". We need to be able to test cases where we cannot force the defining annotation to e.g. all beans in specific packages.

      A solution could be to overload / add a parameter to the method / annotation to allow to switch to the old behaviour of bean-discovery-mode="all".

            manovotn Matěj Novotný
            itsmeden Lars-Fredrik Smedberg (Inactive)
            0 Vote for this issue
            2 Start watching this issue