In my fairly limited experience with Guice, in general you'll only
need to talk to the injector once per application to obtain the
class(es) that have overall control of the application.
These classes are therefore Guice managed and the rest of the classes
are injected or provided by Guice.  So in a main method you might do
injector.getAppController() or something.  In Guice-servlet, the only
time you really need the injector is in the GuiceContextListener.

On 4 July 2011 15:06, ich du <[email protected]> wrote:
> thx!
> thats simply great - my construction didn't felt proper. is there a
> guide/example using "provider" - as i mentioned before all examples i saw so
> far created an injector in main method and use this instance. do i still
> need the injector (in such cases with main method)?
>
> --
> You received this message because you are subscribed to the Google Groups
> "google-guice" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/google-guice/-/C0tASrhbBtEJ.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/google-guice?hl=en.
>

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

Reply via email to