<div class="gmail_quote">On Tue, Jun 8, 2010 at 8:29 PM, Stuart Douglas <span dir="ltr">&lt;<a href="mailto:stuart@baileyroberts.com.au">stuart@baileyroberts.com.au</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
I tried that, it did not work in weld, and according to the spec it is not required to work.<br>
<br>
We need the scope to be a Normal scope as we are after a client proxy, however according to the spec normal scopes need to follow the rules that I included below.<br></blockquote><div><br></div><div>Ah, got it now.</div>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br>
I talked to Pete about this and I am going to resurrect the @ManagedProducer stuff I did in WELDX a while ago, but with javassist rather than JDK proxies. These work by injecting a dependent scoped proxy into the bean, and the proxy calls the @ManagedProducer method every time to get the instance to invoke the method on. This also has the advantage that you can inject the InjectionPoint into the @ManagedProducer method.<br>
</blockquote><div><br></div><div>Cool.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br>
I am not totally sold on the name @ManagedProducer, but as previously discussed making up names is not really my strong point :-)<br></blockquote><div><br></div><div>To be honest, names are just tough in general. I&#39;ve got a couple of suggestions:</div>
<div><br></div><div>PerpetualProducer</div><div>ContinuousProducer</div><div>Activator</div><div>Regenerator</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

<br>
I committed an initial implementation last night, it still needs a bit more work but it should be functional.<br></blockquote><div><br></div><div>As always, great job!</div><div><br></div><div>-Dan</div><div><br></div></div>
-- <br>Dan Allen<br>Senior Software Engineer, Red Hat | Author of Seam in Action<br>Registered Linux User #231597<br><br><a href="http://mojavelinux.com">http://mojavelinux.com</a><br><a href="http://mojavelinux.com/seaminaction">http://mojavelinux.com/seaminaction</a><br>
<a href="http://www.google.com/profiles/dan.j.allen">http://www.google.com/profiles/dan.j.allen</a><br>