[webbeans-dev] Producer fields?

Pete Muir pmuir at redhat.com
Fri Nov 14 07:34:27 EST 2008


I like it I think - I'm not a fan of outjection, but my main  
objections to it don't really apply to this

(that it's confusing to keep track of what outjects what when)

On 14 Nov 2008, at 02:27, Gavin King wrote:

> I'm trying to decide if we want to support @Produces on fields. i.e.
>
>   @Produces Foo foo;
>
> is equivalent to:
>
>   Foo foo;
>   @Produces Foo getFoo() { return foo; }
>
> Evan from Sybase has requested it in the Web Beans EG, and I'm
> sympathetic b/c it throws a bone to Seam folks who love outjection.
> Note, however, that it is not exactly the same as outjection .... the
> object only gets bound to the context if someone requests it.
>
> -- 
> Gavin King
> gavin.king at gmail.com
> http://in.relation.to/Bloggers/Gavin
> http://hibernate.org
> http://seamframework.org
> _______________________________________________
> webbeans-dev mailing list
> webbeans-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/webbeans-dev




More information about the weld-dev mailing list