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

Extend javax.interceptor.InvocationContext

    Details

    • Type: Feature Request
    • Status: Open (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: 2.1 (Discussion)
    • Component/s: None
    • Labels:
      None

      Description

      Currently there is no easy way to obtain the interceptor binding annotation for an interceptor call. The interceptor binding annotation is needed to access @Nonbinding attributes and behave accordingly.

      I propose to extend the javax.interceptor.InvocationContext interface with a method
      public Annotation getInterceptorBinding() or
      public <A extends Annotation> A getInterceptorBinding(Class<A> type)
      The @AroundInvoke method of CDI Interceptors may use this extended interface as parameter instead of the original one to obtain the interceptor binding annotation.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  Unassigned
                  Reporter:
                  arnelim Arne Limburg
                • Votes:
                  1 Vote for this issue
                  Watchers:
                  7 Start watching this issue

                  Dates

                  • Created:
                    Updated: