Details
-
Epic
-
Resolution: Obsolete
-
Major
-
None
-
None
-
None
-
None
-
Provide a way to retrieve the binding from an interceptor
-
To Do
Description
Since CDI 1.1 we can get the intercepted Bean<?> but we can't get the annotated type and method associated easily (= an injection). Would be great to enable it since often in an interceptor you need the binding to read some configuration (@Nonbinding) to change a bit the behavior.
@Inject @Intercepted AnnotatedType<?> type; @Inject @Intercepted AnnotatedMethod<?> method;
would be great
Side note: would be better to be in the InvocationContext but not sure it is an option. Or it would need a CdiInvocationContext inheriting from InvocationContext probably.