Comment by [email protected]:
Binding annotations seem to run contrary to dependency injection and
programming to interfaces. RealBillingService depends on
CreditCardProcesser. The @PayPal binding annotation essentially couples the
RealBillingService to the concrete PayPalCreditCardProcessor. At this point
i feel you may as well just make the RealBillingService depend on the
PayPalCreditCardProcessor directly.
For more information:
http://code.google.com/p/google-guice/wiki/BindingAnnotations
--
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.