[weld-dev] Interceptors
Emily Jiang
emijiang6 at googlemail.com
Mon May 11 09:47:06 EDT 2015
I have a few questions on interceptors:
1. CDI Interceptors on cdi beans
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?
@Interceptors don't work on other cdi beans except ejb and managed beans,
right?
2. Interceptors on ejb beans or managed beans
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's creational
context?
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?
3. Interceptors on JavaEE components
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?
--
Thanks
Emily
=================
Emily Jiang
ejiang at apache.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/weld-dev/attachments/20150511/a067f038/attachment.html
More information about the weld-dev
mailing list