<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:arial,helvetica,sans-serif;font-size:10pt"><div>Hi;<br><br><span>This is related with <a target="_blank" href="https://jira.jboss.org/jira/browse/CDITCK-137">https://jira.jboss.org/jira/browse/CDITCK-137</a>. Also, I have sent an email to EG about this issue but not getting response so far.</span><br><br>--Gurkan<br></div><div style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"><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> Pete Muir &lt;pmuir@redhat.com&gt;<br><b><span style="font-weight: bold;">To:</span></b> Gavin King &lt;gavin.king@gmail.com&gt;<br><b><span style="font-weight: bold;">Cc:</span></b> Weld-Dev List &lt;weld-dev@lists.jboss.org&gt;<br><b><span style="font-weight: bold;">Sent:</span></b> Mon, April
 19, 2010 12:18:24 PM<br><b><span style="font-weight: bold;">Subject:</span></b> Re: [weld-dev] Spec clarification needed<br></font><br>Gavin, can you comment please?<br><br>On 9 Apr 2010, at 16:00, Gurkan Erdogdu wrote:<br><br>&gt; &gt;&gt;&gt;Otherwise InjectionPoint#isDelegate() would always return false<br>&gt; No, Decorators are also beans and you can get its injection points with getInjectionPoints that one of them is @delegate therefore isDelegate returns true.<br>&gt; <br>&gt; I think that "InjectionPoint injection" in the spec. has never written for that DependentScoped beans are injected into decorator delegates.<br>&gt; <br>&gt; Thanks;<br>&gt; <br>&gt; --Gurkan<br>&gt; <br>&gt; From: Sven Linstaedt &lt;<a ymailto="mailto:sven.linstaedt@googlemail.com" href="mailto:sven.linstaedt@googlemail.com">sven.linstaedt@googlemail.com</a>&gt;<br>&gt; To: Pete Muir &lt;<a ymailto="mailto:pmuir@redhat.com"
 href="mailto:pmuir@redhat.com">pmuir@redhat.com</a>&gt;<br>&gt; Cc: Weld-Dev List &lt;<a ymailto="mailto:weld-dev@lists.jboss.org" href="mailto:weld-dev@lists.jboss.org">weld-dev@lists.jboss.org</a>&gt;<br>&gt; Sent: Fri, April 9, 2010 12:16:46 PM<br>&gt; Subject: Re: [weld-dev] Spec clarification needed<br>&gt; <br>&gt; According to the java docs, I would also suppose your expression to be true. Otherwise InjectionPoint#isDelegate() would always return false, making this method dispensable. The interesting point imho is injecting the InjectionPoint in other cases than producer methods. I have not seen examples for this usage in the spec.<br>&gt; <br>&gt; br, Sven<br>&gt; <br>&gt; <br>&gt; 2010/4/9 Pete Muir &lt;<a ymailto="mailto:pmuir@redhat.com" href="mailto:pmuir@redhat.com">pmuir@redhat.com</a>&gt;<br>&gt; Given these beans and decorators (enabled)<br>&gt; <br>&gt; interface Animal {<br>&gt;&nbsp; &nbsp; &nbsp; &nbsp; String hello();<br>&gt;
 }<br>&gt; <br>&gt; class Cat implements Animal {<br>&gt;&nbsp; @Inject private InjectionPoint injectionPoint;<br>&gt; <br>&gt;&nbsp; public String hello() {<br>&gt;&nbsp; &nbsp;  return "hello";<br>&gt;&nbsp; }<br>&gt; <br>&gt;&nbsp; public InjectionPoint getInjectionPoint() {<br>&gt;&nbsp; &nbsp;  return injectionPoint;<br>&gt;&nbsp; }<br>&gt; }<br>&gt; <br>&gt; @Decorator<br>&gt; class AnimalDecorator implements Animal {<br>&gt; <br>&gt;&nbsp; &nbsp; &nbsp; &nbsp; @Inject @Delegate<br>&gt;&nbsp; &nbsp; &nbsp; &nbsp; private Animal bean;<br>&gt; <br>&gt;&nbsp; &nbsp; &nbsp; &nbsp; public String hello() {<br>&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return bean.hello() + " world!";<br>&gt;&nbsp; &nbsp; &nbsp; &nbsp; }<br>&gt; }<br>&gt; <br>&gt; class Cattery {<br>&gt; <br>&gt;&nbsp; @Inject Cat cat;<br>&gt; <br>&gt;&nbsp; Cat getCat() {<br>&gt;&nbsp; &nbsp;  return cat;<br>&gt;&nbsp; }<br>&gt; <br>&gt; }<br>&gt; <br>&gt; Should<br>&gt;
 <br>&gt; cattery.getCat().getInjectionPoint().isDelegate() return true or false?<br>&gt; <br>&gt; I believe it should return true, as Cat is being decorated, and hence injected into the decorator delegate injection point.<br>&gt; <br>&gt; Ref is <a href="https://jira.jboss.org/jira/browse/CDITCK-138" target="_blank">https://jira.jboss.org/jira/browse/CDITCK-138</a><br>&gt; _______________________________________________<br>&gt; weld-dev mailing list<br>&gt; <a ymailto="mailto:weld-dev@lists.jboss.org" href="mailto:weld-dev@lists.jboss.org">weld-dev@lists.jboss.org</a><br>&gt; <a href="https://lists.jboss.org/mailman/listinfo/weld-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/weld-dev</a><br>&gt; <br>&gt; <br>&gt; Yahoo! Türkiye açıldı!<br>&gt; Haber, Ekonomi, Videolar, Oyunlar hepsi Yahoo! Türkiye'de!<br><span>&gt; <a target="_blank"
 href="http://www.yahoo.com.tr_______________________________________________">www.yahoo.com.tr_______________________________________________</a></span><br>&gt; weld-dev mailing list<br>&gt; <a ymailto="mailto:weld-dev@lists.jboss.org" href="mailto:weld-dev@lists.jboss.org">weld-dev@lists.jboss.org</a><br>&gt; <a href="https://lists.jboss.org/mailman/listinfo/weld-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/weld-dev</a><br><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></div></div>
</div><br>__________________________________________________<br>Yahoo! kullanıyor musunuz?<br>İstenmeyen postadan bıktınız mı?  Yahoo! Posta'da piyasanın en iyi istenmeyen posta korunması var <br>http://tr.mail.yahoo.com </body></html>