[weld-dev] Proposed SPI enhancements
Sven Linstaedt
sven.linstaedt at googlemail.com
Sun Jan 17 06:52:00 EST 2010
Hi Gavin,
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.
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.
wdyt?
br, Sven
2010/1/8 Gavin King <gavin.king at gmail.com>
> Minor update to the proposals, with small adjustments.
>
> On Fri, Jan 8, 2010 at 12:35 PM, Gavin King <gavin.king at gmail.com> wrote:
> > Folks, I chatted with Roberto yesterday, and we agreed that I should
> > write up the proposed enhancements to the SPI. So here's a draft of
> > the spec with my proposals. These enhancements don't require the
> > addition of new capabilities to the container, they just expose
> > pre-existing functionality to the portable extension.
> >
> > The changes are:
> >
> > * Addition of BeanAttributes to 11.1
> > * Addition of helper methods to BeanManager 11.3.19-11.3.23
> > * Addition of ProcessModule event 11.5.5
> > * Addition of ProcessInjectionPoint event 11.5.7
> > * Addition of ProcessProducerMethod, ProcessProducerField and Initializer
> 11.5.9
> > * Addition of ProcessBeanAttributes event 11.5.10
> >
> > Please let me know what you think, and if you can see any holes.
> >
> > Thanks!
> >
> >
> > --
> > Gavin King
> > gavin.king at gmail.com
> > http://in.relation.to/Bloggers/Gavin
> > http://hibernate.org
> > http://seamframework.org
> >
>
>
>
> --
> Gavin King
> gavin.king at gmail.com
> http://in.relation.to/Bloggers/Gavin
> http://hibernate.org
> http://seamframework.org
>
> _______________________________________________
> weld-dev mailing list
> weld-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/weld-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/weld-dev/attachments/20100117/2f3af180/attachment.html
More information about the weld-dev
mailing list