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