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

AfterTypeDiscovery.addAnnotatedType(String, Class) doesn't add the configured type

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Duplicate Issue
    • Affects Version/s: 3.0.0.Alpha17
    • Fix Version/s: None
    • Component/s: Events
    • Labels:
      None

      Description

      Very briefly put, I think the AfterTypeDiscovery#addAnnotatedType(String, Class) method does not work.

      The specification indicates that if we use the returned builder (AnnotatedTypeConfigurator), the new annotated type built that way will be added when the observer method completes, and considered by the bean discovery process (see section 11.5.2 (which refers to the method, but says incorrectly that it only has one String product)).

      It also indicates that a subsequent ProcessSyntheticAnnotatedType event should be fired.

      Additionally, during the AfterBeanDiscovery event, the added type should be available via the AfterBeanDiscovery#getAnnotatedType(Class, String) method.

      Finally, I assume that provided the annotated type I add is valid it should result in a ProcessManagedBean event being fired.

      The attached test case shows (I think) that the addAnnotatedType(String, Class method basically doesn't add the type.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              ljnelson Laird Nelson (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: