Well, I guess maybe that would be better, but since we've already got
createAnnotatedType() and createInjectionTarget() defined in
BeanManager, I think it's too late to do that. Anyway, I don't think
it's a big deal...
On Sun, Jan 17, 2010 at 5:52 AM, Sven Linstaedt
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
2010/1/8 Gavin King <gavin.king(a)gmail.com>
> Minor update to the proposals, with small adjustments.
> On Fri, Jan 8, 2010 at 12:35 PM, Gavin King <gavin.king(a)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(a)gmail.com
> > http://in.relation.to/Bloggers/Gavin
> > http://hibernate.org
> > http://seamframework.org
> Gavin King
> weld-dev mailing list