Set<Annotation> bindings = (Set<Annotation>) invocationContext.getContextDa
In fact, a more safe way is to use the Weld API, cast the invocation context to org.jboss.weld.interceptor.Wel
dInvocationContext and use the appropriate methods.
Yes. There is already a spec issue: https://issues.jboss.org/brows
e/CDI-468but this would require a change in interceptors spec.
Is there a standard way to get the bindings? Perhaps getting hold of the Bean<T> that represents the current Interceptor?
You can inject a bean with scope @Dependent, qualifier @Default and type Interceptor into any interceptor instance. However, this will not help for @Nonbinding value members of an interceptor binding.
cdi-dev mailing list
Note that for all code provided on this list, the provider licenses the code under the Apache License, Version 2 (http://www.apache.org/license
s/LICENSE-2.0.html). For all other ideas provided on this list, the provider waives all patent and other intellectual property rights inherent in such information.
Senior Software Engineer
Red Hat, Czech Republic