<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 <pmuir@redhat.com><br><b><span style="font-weight: bold;">To:</span></b> Gavin King <gavin.king@gmail.com><br><b><span style="font-weight: bold;">Cc:</span></b> Weld-Dev List <weld-dev@lists.jboss.org><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>> >>>Otherwise InjectionPoint#isDelegate() would always return false<br>> 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>> <br>> I think that "InjectionPoint injection" in the spec. has never written for that DependentScoped beans are injected into decorator delegates.<br>> <br>> Thanks;<br>> <br>> --Gurkan<br>> <br>> From: Sven Linstaedt <<a ymailto="mailto:sven.linstaedt@googlemail.com" href="mailto:sven.linstaedt@googlemail.com">sven.linstaedt@googlemail.com</a>><br>> To: Pete Muir <<a ymailto="mailto:pmuir@redhat.com"
href="mailto:pmuir@redhat.com">pmuir@redhat.com</a>><br>> Cc: Weld-Dev List <<a ymailto="mailto:weld-dev@lists.jboss.org" href="mailto:weld-dev@lists.jboss.org">weld-dev@lists.jboss.org</a>><br>> Sent: Fri, April 9, 2010 12:16:46 PM<br>> Subject: Re: [weld-dev] Spec clarification needed<br>> <br>> 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>> <br>> br, Sven<br>> <br>> <br>> 2010/4/9 Pete Muir <<a ymailto="mailto:pmuir@redhat.com" href="mailto:pmuir@redhat.com">pmuir@redhat.com</a>><br>> Given these beans and decorators (enabled)<br>> <br>> interface Animal {<br>> String hello();<br>>
}<br>> <br>> class Cat implements Animal {<br>> @Inject private InjectionPoint injectionPoint;<br>> <br>> public String hello() {<br>> return "hello";<br>> }<br>> <br>> public InjectionPoint getInjectionPoint() {<br>> return injectionPoint;<br>> }<br>> }<br>> <br>> @Decorator<br>> class AnimalDecorator implements Animal {<br>> <br>> @Inject @Delegate<br>> private Animal bean;<br>> <br>> public String hello() {<br>> return bean.hello() + " world!";<br>> }<br>> }<br>> <br>> class Cattery {<br>> <br>> @Inject Cat cat;<br>> <br>> Cat getCat() {<br>> return cat;<br>> }<br>> <br>> }<br>> <br>> Should<br>>
<br>> cattery.getCat().getInjectionPoint().isDelegate() return true or false?<br>> <br>> I believe it should return true, as Cat is being decorated, and hence injected into the decorator delegate injection point.<br>> <br>> Ref is <a href="https://jira.jboss.org/jira/browse/CDITCK-138" target="_blank">https://jira.jboss.org/jira/browse/CDITCK-138</a><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>> <br>> <br>> Yahoo! Türkiye açıldı!<br>> Haber, Ekonomi, Videolar, Oyunlar hepsi Yahoo! Türkiye'de!<br><span>> <a target="_blank"
href="http://www.yahoo.com.tr_______________________________________________">www.yahoo.com.tr_______________________________________________</a></span><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><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>