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

XMLWordPrintable

    • Icon: Feature Request Feature Request
    • Resolution: Obsolete
    • Icon: Major Major
    • None
    • 1.2.Final, 2.0-EDR1
    • Beans
    • None

      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.

              Unassigned Unassigned
              asabotdu@redhat.com Antoine Sabot-Durand (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: