<div dir="ltr">Hi,<div><br></div><div>Normally a workaround to get the interceptor bindings from within an Interceptor is to inspect the target and/or the injected intercepted bean.</div><div><br></div><div>However, when adding an interceptor via the new CDI 2.0 interception factory, things become a bit more muddy.</div><div><br></div><div>See e.g. </div><div><br></div><div><a href="https://github.com/javaee-samples/javaee8-samples/blob/master/cdi/interception-factory/src/main/java/org/javaee8/cdi/interception/factory/MyGreetingProducer.java#L34">https://github.com/javaee-samples/javaee8-samples/blob/master/cdi/interception-factory/src/main/java/org/javaee8/cdi/interception/factory/MyGreetingProducer.java#L34</a></div><div><br></div><div><br></div><div>Weld has the following method to get the bindings from the InvocationContext:</div><div><br></div><div>Set&lt;Annotation&gt; bindings = (Set&lt;Annotation&gt;) invocationContext.getContextData().get(&quot;org.jboss.weld.interceptor.bindings&quot;);<br></div><div><br></div><div>But this is obviously non-standard.</div><div><br></div><div>Is there a standard way to get the bindings? Perhaps getting hold of the Bean&lt;T&gt; that represents the current Interceptor?</div><div><br></div><div>Kind regards,</div><div>Arjan Tijms</div></div>