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

ProcessAnnotatedType - clarify what happens if both setAnnotatedType() and configurator are used within observer notification

    XMLWordPrintable

    Details

    • Type: Clarification
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 2.0 .Final
    • Component/s: None
    • Labels:
      None

      Description

      Right now, it's not clear what happens if:

      • a user first calls setAnnotatedType() and then obtains a reference to the configurator (note that the configurator should be initialized with the AT being processed)
      • a user obtains a reference to a configurator and then invokes setAnnotatedType()

      We could either forbid using both of these methods during one notification, or state that the "last one wins". I would rather go the first way as the second solution might be confusing and error-prone.

      This applies to ProcessObserverMethod, ProcessBeanAttributes and ProcessInjectionPoint as well.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              antoinesabot-durand Antoine Sabot-Durand (Inactive)
              Reporter:
              mkouba Martin Kouba
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: