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

Add the possibility to retrieve {{Bean<T>}} from one of its instance

    Details

    • Type: Feature Request
    • Status: Open (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 1.2.Final, 2.0-EDR1
    • Fix Version/s: None
    • Component/s: Beans
    • Labels:
      None

      Description

      Since CDI 1.1 it's possible to inject its meta data in a bean instance wit @Inject Bean<T> meta;. Its very useful to get information like actual class or qualifier on the current bean.
      This feature is great when we own the code and can add the injection point but when the bean is defined in a third party lib this information are not reachable.

      It would be nice to have a method in the BeanManager or elsewhere being able to return the Bean<T> corresponding to a T instance or null if the instance is not managed.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                antoinesabot-durand Antoine Sabot-Durand
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated: