[webbeans-dev] Producer fields?

Gavin King gavin at hibernate.org
Thu Nov 13 11:27:57 EST 2008


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



More information about the weld-dev mailing list