<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:arial,helvetica,sans-serif;font-size:8pt"><div>I have tried this in JBoss 6.0.0 M1 and it proxies interceptors/decorators even on dependent beans.<br><br>--Gurkan<br></div><div style="font-family: arial,helvetica,sans-serif; font-size: 8pt;"><br><div style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"><font face="Tahoma" size="2"><hr size="1"><b><span style="font-weight: bold;">From:</span></b> Gavin King &lt;gavin.king@gmail.com&gt;<br><b><span style="font-weight: bold;">To:</span></b> Pete Muir &lt;pmuir@redhat.com&gt;<br><b><span style="font-weight: bold;">Cc:</span></b> weld-dev@lists.jboss.org; Joseph Bergmark &lt;bergmark@apache.org&gt;<br><b><span style="font-weight: bold;">Sent:</span></b> Fri, February 5, 2010 9:09:28 PM<br><b><span style="font-weight: bold;">Subject:</span></b> Re: [weld-dev] Question regarding behavior of
 Decorated dependent scoped beans<br></font><br>On Fri, Feb 5, 2010 at 12:39 PM, Pete Muir &lt;<a ymailto="mailto:pmuir@redhat.com" href="mailto:pmuir@redhat.com">pmuir@redhat.com</a>&gt; wrote:<br>&gt; Sorry, we lost this email.<br>&gt;<br>&gt; On 18 Jan 2010, at 23:07, Joseph Bergmark wrote:<br>&gt;<br>&gt;&gt; While verifying the behavior of decorated dependent scoped beans on OpenWebBeans, Gurkan mentioned that he observed the same behavior on WELD. &nbsp;While verifying myself I noticed two behaviors that seem to conflict with the spec.<br>&gt;&gt;<br>&gt;&gt; 1) Non-normal scoped beans don't have any restrictions on public fields. &nbsp;A quick test showed that changes made to public fields directly are not reflected when a call to a getter method that returns that value of the public field is made. &nbsp;Presumably this is because there is an proxy like object in the middle.<br>&gt;&gt;<br>&gt;&gt; For example<br>&gt;&gt;<br>&gt;&gt; @Inject
 MyBean myBean;<br>&gt;&gt;<br>&gt;&gt; myBean.number = 7;<br>&gt;&gt; myBean.getNumber(); //would return the default value for number and not 7 which it was just set to.<br>&gt;<br>&gt; Correct, I don't think the spec covers this.<br><br>Interceptors and decorators are supposed to be implemented by<br>subclassing, not by proxying.<br><br>-- <br>Gavin King<br><a ymailto="mailto:gavin.king@gmail.com" 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>_______________________________________________<br>weld-dev mailing list<br><a ymailto="mailto:weld-dev@lists.jboss.org" href="mailto:weld-dev@lists.jboss.org">weld-dev@lists.jboss.org</a><br><a
 href="https://lists.jboss.org/mailman/listinfo/weld-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/weld-dev</a><br></div></div>
<!-- cg24.c1.mail.mud.yahoo.com compressed/chunked Fri Feb  5 14:10:54 PST 2010 -->
</div><br>




      <hr size="1"><FONT face=Arial size=-1>Yahoo! Türkiye açıldı!<br>
Haber, Ekonomi, Videolar, Oyunlar hepsi Yahoo! Türkiye&#39;de!<br><a href="http://tr.yahoo.com/">www.yahoo.com.tr</a></font></body></html>