You don’t need the injector, why not simply

@Injectprivate MyClass injectedField

wherever you need it?

Fields is as granular as you can get, though, you can’t inject into local
variables (which would be neat but kinda overkill, IMO).

-- 
Cédric



On Fri, Nov 15, 2013 at 9:19 PM, Maatary Okouya <[email protected]>wrote:

> All the example i see do the configuration within one point the main. What
> about if one need to inject some dependence at different point in the code.
> Is there a way to retreive the same injector, is it a singleton, like for
> loggers for instance etc... ?
>
> --
> 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.
> 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.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to