Comment by [email protected]:
That would not work in this example. BillingService.class is an interface,
not a concrete class. As such, it does not have constructors to inject the
dependencies into. The following would be fine for an example, but might
not work if there are class specific methods that would need to be called.
{{{
BillingService realBillingService =
injector.getInstance(RealBillingService.class);
}}}
For more information:
https://code.google.com/p/google-guice/wiki/GettingStarted
--
You received this message because you are subscribed to the Google Groups
"google-guice-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-guice-dev?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.