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

Extend javax.interceptor.InvocationContext

XMLWordPrintable

    • Icon: Feature Request Feature Request
    • Resolution: Obsolete
    • Icon: Major Major
    • 2.1 (Discussion)
    • None
    • None
    • None

      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.

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

              Created:
              Updated:
              Resolved: