Dhanji,

Sorry, I did not notice you updated the code in your first reply. My
mistake. Ok, so, basically, we can inject the injector. I should have
tried it.

Thanks a lot.

Jeremy,

On Jul 27, 12:53 am, "Dhanji R. Prasanna" <[email protected]> wrote:
> On Mon, Jul 27, 2009 at 4:20 PM, Andreas Petersson 
> <[email protected]>wrote:
>
>
>
> > i would do this the following way:
> > 1) instead of @Provides use a Provider<List<Object>> bound to
> > @Named("specialobjects")
> > 2) when setting up the provider inside the module inject the injector
> > into the provider.
> > 3) use the injector to create instances of your specific classes simply
> > with inj.getInstance(Class<T>);
> > 4)???
> > 5) profit
>
> Why not use the @Provides method to do the same thing (as in my example).
>
> Dhanji.
>
> PS: Are my emails getting thru??
--~--~---------~--~----~------------~-------~--~----~
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