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

Extend javax.interceptor.InvocationContext

    XMLWordPrintable

Details

    • Feature Request
    • Resolution: Obsolete
    • Major
    • 2.1 (Discussion)
    • None
    • None
    • 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.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              arnelim Arne Limburg (Inactive)
              Votes:
              3 Vote for this issue
              Watchers:
              12 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: