You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@reef.apache.org by Douglas Service <ds...@gmail.com> on 2017/04/13 04:42:02 UTC

Question

If two classes, say A and B, are being instantiated by a Tang injector and
 both take the same type C as constructor parameters, will tang pass them a
both a reference to the same C object since Tang only deals with singletons?

Doug

Re: Question

Posted by Markus Weimer <ma...@weimo.de>.
On Wed, Apr 12, 2017 at 9:42 PM, Douglas Service <ds...@gmail.com> wrote:
> If two classes, say A and B, are being instantiated by a Tang injector and
>  both take the same type C as constructor parameters, will tang pass them a
> both a reference to the same C object since Tang only deals with singletons?


Yes.

Markus