Tools might also be helpful in setting up interceptors based on what you have available, I suppose. And the list of interceptors for a normal Seam 3 application is hopefully shorter than that from a Seam 2 app.<br><br><div class="gmail_quote">
On Mon, Mar 29, 2010 at 7:30 PM, Gavin King <span dir="ltr">&lt;<a href="mailto:gavin.king@gmail.com">gavin.king@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
I think you guys have got this wrong. CDI was deliberately designed to<br>
require explicit declaration of interceptors. We thought VERY HARD<br>
about this, and realized that this was the best way to go. Any<br>
auto-registration of interceptors runs into all kinds of problems down<br>
the road:<br>
<br>
(1) When I use two frameworks together, or add my own interceptor to<br>
the interceptors defined by a framework, what is its ordering with<br>
respect to the interceptors that already exist?<br>
<br>
(2) How do I turn an interceptor off?<br>
<br>
Look, CDI is supposed to be an ecosystem for multiple portable<br>
extensions that play nicely together. Auto-enablement of interceptors<br>
gets you into the total clusterfuck of phase listeners in JSF.<br>
<br>
Don&#39;t go down this path.<br>
<div class="im"><br>
--<br>
Gavin King<br>
<a href="mailto:gavin.king@gmail.com">gavin.king@gmail.com</a><br>
<a href="http://in.relation.to/Bloggers/Gavin" target="_blank">http://in.relation.to/Bloggers/Gavin</a><br>
<a href="http://hibernate.org" target="_blank">http://hibernate.org</a><br>
<a href="http://seamframework.org" target="_blank">http://seamframework.org</a><br>
_______________________________________________<br>
</div><div class="im">seam-dev mailing list<br>
<a href="mailto:seam-dev@lists.jboss.org">seam-dev@lists.jboss.org</a><br>
</div><div><div></div><div class="h5"><a href="https://lists.jboss.org/mailman/listinfo/seam-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/seam-dev</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>---<br>Nik<br>