This content has been marked as final.
Show 3 replies
-
1. Re: Invokation of Producer Methods
nimo22 Aug 27, 2010 8:38 AM (in response to nimo22)Is CDI-@Produces the same as Seams @Factory ?
-
2. Re: Invokation of Producer Methods
pmuir Sep 1, 2010 8:55 AM (in response to nimo22)
nimo mayr wrote on Aug 27, 2010 08:37:
I have a Bean A and B.
A has itself a Producer-Method a1 (@Produces).
B has itself a Producer-Method b1 (@Produces).
Now, A injects a (new Instance of) B.
Does the Container invokes the Producer-Method a1 automatically when A is instantiated ?Assuming that these are all dependent scoped, then yes.
Does the Container invokes the Producer-Method b1 automatically when A injects B ?No, never.
-
3. Re: Invokation of Producer Methods
pmuir Sep 1, 2010 8:55 AM (in response to nimo22)
nimo mayr wrote on Aug 27, 2010 08:38:
Is CDI-@Produces the same as Seams @Factory ?Similar, not the same.