<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:arial,helvetica,sans-serif;font-size:10pt"><div>GK >>The responsibility for associating the new object with the Context<br>GK>>should be in Bean.create() instead of in Context.get().<br><br>I think how to implement Bean and Context contract of the spec. is left to the implementations. This may not be required by the spec itself.<br></div><div style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"><br>Gurkan<br><div style="font-family: arial,helvetica,sans-serif; font-size: 13px;"><font face="Tahoma" size="2"><hr size="1"><b><span style="font-weight: bold;">From:</span></b> Gavin King <gavin@hibernate.org><br><b><span style="font-weight: bold;">To:</span></b> Scott Ferguson <ferg@caucho.com><br><b><span style="font-weight: bold;">Cc:</span></b> Michael Keith <michael.keith@oracle.com>; WebBeans
<webbeans-dev@lists.jboss.org>; Java Community Process JSR #299 Expert List <JSR-299-EG@jcp.org><br><b><span style="font-weight: bold;">Sent:</span></b> Friday, January 2, 2009 6:42:39 AM<br><b><span style="font-weight: bold;">Subject:</span></b> Re: [webbeans-dev] Re: Bean.getInjectionPoints()<br></font><br>
On Fri, Jan 2, 2009 at 3:29 PM, Gavin King <<a ymailto="mailto:gavin@hibernate.org" href="mailto:gavin@hibernate.org">gavin@hibernate.org</a>> wrote:<br><br>> But what you're really saying is that it's better to handle circular<br>> references from Bean.create() than from Manager.getInstance().<br><br>I expressed myself badly here. What I mean is:<br><br>The responsibility for associating the new object with the Context<br>should be in Bean.create() instead of in Context.get().<br><br>This is not quite as simple as it sounds because it means adding a<br>Context.put() operation, with hard-to-define semantics, and some way<br>of ensuring that instances for which injection is not yet complete are<br>not visible to other threads executing in the same context.<br><br>Actually I think there is a better way to solve the problem, but I<br>need to talk it over with Pete.<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>webbeans-dev mailing list<br><a ymailto="mailto:webbeans-dev@lists.jboss.org" href="mailto:webbeans-dev@lists.jboss.org">webbeans-dev@lists.jboss.org</a><br><a href="https://lists.jboss.org/mailman/listinfo/webbeans-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/webbeans-dev</a><br></div></div></div><br>
</body></html>