Hi Gavin,<br><br>as far es I understand, some of the added BeanManager methods (BeanManager#create*()) are utility functions only used at bean discovery time. Using these methods at runtime has no benefit at all, as far as I see. <br>
<br>If this is the case, would not it be a better solution to distinct between these two phases by introducing another type (e.g. BeanFactory), which is injectable in spi events like BeanManager. These new type enables the invocation of the beforementioned methods. Thus BeanManager's signatures would not be overloaded with "helper" methods only used at bean discovery time.<br>
<br>wdyt?<br><br>br, Sven<br><br><div class="gmail_quote">2010/1/8 Gavin King <span dir="ltr"><<a href="mailto:gavin.king@gmail.com">gavin.king@gmail.com</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Minor update to the proposals, with small adjustments.<br>
<div><div></div><div class="h5"><br>
On Fri, Jan 8, 2010 at 12:35 PM, Gavin King <<a href="mailto:gavin.king@gmail.com">gavin.king@gmail.com</a>> wrote:<br>
> Folks, I chatted with Roberto yesterday, and we agreed that I should<br>
> write up the proposed enhancements to the SPI. So here's a draft of<br>
> the spec with my proposals. These enhancements don't require the<br>
> addition of new capabilities to the container, they just expose<br>
> pre-existing functionality to the portable extension.<br>
><br>
> The changes are:<br>
><br>
> * Addition of BeanAttributes to 11.1<br>
> * Addition of helper methods to BeanManager 11.3.19-11.3.23<br>
> * Addition of ProcessModule event 11.5.5<br>
> * Addition of ProcessInjectionPoint event 11.5.7<br>
> * Addition of ProcessProducerMethod, ProcessProducerField and Initializer 11.5.9<br>
> * Addition of ProcessBeanAttributes event 11.5.10<br>
><br>
> Please let me know what you think, and if you can see any holes.<br>
><br>
> Thanks!<br>
><br>
><br>
> --<br>
> Gavin King<br>
> <a 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>
<br>
<br>
--<br>
Gavin King<br>
<a 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>
</div></div><br>_______________________________________________<br>
weld-dev mailing list<br>
<a 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></blockquote></div><br>