Uploaded image for project: 'Weld'
  1. Weld
  2. WELD-2433

Backport Weld's 3 feature to obtain interceptor bindings to Weld 2

XMLWordPrintable

      CDI doesn't give us an easy way to obtain the interceptor binding annotations from an interceptor call. See https://issues.jboss.org/browse/CDI-468

      Weld 3 has a great workaround for this that can be used until there's an actual spec compliant solution:

      Set<Annotation> bindings = (Set<Annotation>) invocationContext.getContextData().get("org.jboss.weld.interceptor.bindings");
      

      Since this is a problem in Java EE 7 applications as well, it would be great if this feature could be back ported to Weld 2.

              manovotn Matěj Novotný
              arjan.tijms@gmail.com Arjan Tijms (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: