[webbeans-dev] Re: Bean.getInjectionPoints()

Gavin King gavin at hibernate.org
Thu Jan 1 23:42:39 EST 2009


On Fri, Jan 2, 2009 at 3:29 PM, Gavin King <gavin at hibernate.org> wrote:

> But what you're really saying is that it's better to handle circular
> references from Bean.create() than from Manager.getInstance().

I expressed myself badly here. What I mean is:

The responsibility for associating the new object with the Context
should be in Bean.create() instead of in Context.get().

This is not quite as simple as it sounds because it means adding a
Context.put() operation, with hard-to-define semantics, and some way
of ensuring that instances for which injection is not yet complete are
not visible to other threads executing in the same context.

Actually I think there is a better way to solve the problem, but I
need to talk it over with Pete.

-- 
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