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

Extend javax.interceptor.InvocationContext

    XMLWordPrintable

    Details

    • Type: Feature Request
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Out of Date
    • 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.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved: