<div dir="ltr"><div><div><div><div><div><div><div><div><br clear="all"></div>I have a few questions on interceptors:<br><br></div>1. CDI Interceptors on cdi beans<br></div>Will the interceptors share the same creational context as the bean it is associated with? Will Weld managed the cdi interceptors as well as the old-styled interceptors?<br></div><div>@Interceptors don&#39;t work on other cdi beans except ejb and managed beans, right?<br><br></div>2. Interceptors on ejb beans or managed beans<br></div>I think the integrator needs to create these @Interceptors and cdi interceptors. Will these interceptors use the non-contextual creational context (scope @Dependent) or use the ejb or managed bean&#39;s creational context? <br><br>Will Weld destroy the interceptors when the associated beans are destroyed or the integrator need to destroy them? This logic applicable to both cdi interceptors and @Interceptors style interceptors, right?<br><br></div>3. Interceptors on JavaEE components<br></div>I think this interceptors are created by Weld when the JavaEE component classes are created, right? By the way, how can the container make sure to destroy the interceptors?<br><br></div><br><div><div><div><div><div><div><div><div><div><div>-- <br><div class="gmail_signature">Thanks<br>Emily<br>=================<br>Emily Jiang<br><a href="mailto:ejiang@apache.org" target="_blank">ejiang@apache.org</a><br></div>
</div></div></div></div></div></div></div></div></div></div></div>