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

Cannot add AnnotatedType during BBD and ATD using AnnotatedTypeConfigurator

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 3.0.0.Beta1
    • 3.0.0.Alpha17
    • None
    • None

    Description

      During BeforeBeanDiscovery and AfterTypeDiscovery lifecycle event user can add new AnnotatedTypes using jaddAnnotatedType(java.lang.Class<T>, java.lang.String) which returns new AnnotatedTypeConfigurator.

      Problem is that in Weld these ATs are never actually added because corresponding AbstractAnnotatedTypeRegisteringEvent#finish is called too early and the "additionalAnnotatedTypes" is overwritten in the following lifecycle event.

      Attachments

        Issue Links

          Activity

            People

              tremes1@redhat.com Tomas Remes
              tremes1@redhat.com Tomas Remes
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: