Comment by [email protected]:
Example needs fixing...this probably eluded detection because we see what
we want to see.
{{{
public static void main(String[] args) {
CreditCardProcessor processor = new PaypalCreditCardProcessor();
TransactionLog transactionLog = new DatabaseTransactionLog();
BillingService billingService
= new RealBillingService(creditCardProcessor, transactionLog);
...
}
}}}
creditCardProcessor <> processor... I think you need to correct either the
argument in the constructor call or the local variable. If not, please
explain what I'm missing.
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.