Guice Custom Injection for constructor parameters
问题 I read about Custom Injection in Guice here: https://github.com/google/guice/wiki/CustomInjections This scheme describes how you can create a MembersInjector for injecting fields of a class. I am able to do this successfully. However, I do not like the idea of field injection and would like to do this to inject parameters of a constructor. Does anybody have a clue as to how this can be achieved for constructor injection? Specifically: public class PaymentService { private final Logger logger;