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

Easy way to get an interceptor model

    XMLWordPrintable

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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            rmannibucau@gmail.com Romain Manni-Bucau
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: