In the next snapshot/RC, you can do this by calling binder().disableCircularProxies() in a module.
But... why would you want to disable them in a child injector but not the parent injector? sam On Mon, Dec 20, 2010 at 4:28 AM, Martin Lukasiewycz <[email protected]>wrote: > Hi Sam, > i wanted to use the "disableCircularProxies()" of the InjectorBuilder > (i dont see how i can disable circular proxies by using > Injector.createChildInjector) > > Best, > Martin > > On 19 Dez., 22:20, Sam Berlin <[email protected]> wrote: > > InjectorBuilder will be removed in the next snapshot in favor of Binder > > methods (called from a Module). > > > > Is there a reason you wanted to pass a parent injector to InjectorBuilder > > (rather than using Injector.createChildInjector)? > > > > sam > > > > On Sun, Dec 19, 2010 at 5:55 AM, Martin Lukasiewycz <[email protected] > >wrote: > > > > > Is there any simple way to use a parent Injector in the > > > InjectorBuilder? - The API does not allow it: > > > > >http://google-guice.googlecode.com/svn/trunk/javadoc/com/google/injec. > .. > > > > > One could try to convert the parent Injector into a Module and pass it > > > to the InjectorBuilder.addModules(...). Is that somehow possible? > > > > > Thanks in advance > > > > > -- > > > 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]<google-guice%[email protected]> > <google-guice%[email protected]<google-guice%[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]<google-guice%[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.
