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

Details

    • Feature Request
    • Resolution: Obsolete
    • Major
    • None
    • 1.2.Final, 2.0-EDR1
    • Beans
    • 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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: