Comment by flashot:

phasmal:
BillingService billingService = new BillingService(new BillingModule());
First, BillingService is an interface, you can't do init like you mentioned.
Second, if you want to use constructor to inject the module, you must to create a Constructor with AbstractModule parameter, what does this constructor do? I guess it will do injector.getInstance(BillingService.class);
right?
so, it's redundant operation in your phase.

For more information:
http://code.google.com/p/google-guice/wiki/Motivation

--
You received this message because you are subscribed to the Google Groups 
"google-guice-dev" 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-dev?hl=en.

Reply via email to