Hi, I am having problems with using child injectors and type listeners. Basically, I create a child injector which has a module that binds a type listener and another module that binds a simple interface/class implementation. What I see is that the type listener is not applied on the class that was bound.
The problem, it seems, is that Guice tries to create the jit binding first by the parent (recursively), and if its successful, then it continues (there is a silent ignore for errors and retry on current). What happens then is that if the binding is successful, and for me it is since its a class with an empty constructor (nothing is injected by guice) the constructor store associated with it references the parent injector. This results in the type listener not being applied to my class. Is this the intended behavior? I was thinking that any type listener I bind in the child injector should be applied to anything I bind in the child injector... Cheers, Shay --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
