If you do that, you are no longer following Pependency Injection, but
Lookup pattern.
I think it is more an anti-pattern, so I would never do that.

Regards,
Witold Szczerba
---
Sent from my mobile phone.
On Apr 13, 2013 7:00 PM, "Jozsef Hegedus" <[email protected]> wrote:

> Hi,
>
> Is it a good idea to have a global singleton injector instance and use
> that in place of new ?
>
> Cheers
>
> Jozsef
>
> --
> You received this message because you are subscribed to the Google Groups
> "google-guice" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/google-guice?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"google-guice" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-guice?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to