Am 22.02.2012 18:19, schrieb Mark Addleman: > The key problem with TypeListeners is they can't find how to use > them for constructor injection. Another poster has a similar problem. >
You cannot use TypeListeners for constructor injection. You need to use ProvisionListener from Guice 4 to intercept constructor injection. An example how to use it can be found here: https://bitbucket.org/noctarius/guiceidentityinjection/src/014f6cb8fcc0/src/main/java/com/google/inject/identityinjection/IdentityProviderFactory.java Maybe there are other ways to implement it. Cheers Noc > Is there an example of this? > -- > 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/-/kbxm1fzADlcJ. > 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.
