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 google...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-guice...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-guice?hl=en.