[weld-dev] Proposed SPI enhancements

Gavin King gavin.king at gmail.com
Sun Jan 17 10:05:56 EST 2010


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
<sven.linstaedt at googlemail.com> wrote:
> 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
>
>



-- 
Gavin King
gavin.king at gmail.com
http://in.relation.to/Bloggers/Gavin
http://hibernate.org
http://seamframework.org


More information about the weld-dev mailing list