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

Allow accessing declaring Bean from ObserverMethod


    • Icon: Task Task
    • Resolution: Done
    • Icon: Major Major
    • 5.0.0.Beta1
    • 5.0.0.Alpha1
    • None
    • None

      CDI issue - https://github.com/eclipse-ee4j/cdi/issues/563

      CDI 4 allows to accessing declaring Bean object from ObserverMethod.
      Weld already has internal construct for this, we just need to check if we expose it accordingly. See this code.

      We also need test coverage for two cases:

      • Standard, class-based bean where this method should return the declaring bean
      • Synthetic OM in which case we (if memory serves) return the extension declaring it.
        • Note that in this scenario, the spec leaves it undefined (so no TCKs for it)

            manovotn Matěj Novotný
            manovotn Matěj Novotný
            0 Vote for this issue
            1 Start watching this issue