Revision: 1056
Author: ffaber
Date: Thu Aug  6 10:22:40 2009
Log: public => package private.
http://code.google.com/p/google-guice/source/detail?r=1056

Modified:
  /wiki/GettingStarted.wiki

=======================================
--- /wiki/GettingStarted.wiki   Thu Jul 30 10:29:45 2009
+++ /wiki/GettingStarted.wiki   Thu Aug  6 10:22:40 2009
@@ -6,17 +6,18 @@

  To illustrate, we'll start the `RealBillingService` class that accepts its  
dependent interfaces `CreditCardProcessor` and `TransactionLog` in its  
constructor. To make it explicit that the `RealBillingService` constructor  
is invoked by Guice, we add the `...@inject` annotation:
  {{{
-public class RealBillingService implements BillingService {
+class RealBillingService implements BillingService {
    private final CreditCardProcessor processor;
    private final TransactionLog transactionLog;

    @Inject
-  public RealBillingService(CreditCardProcessor processor,
+  RealBillingService(CreditCardProcessor processor,
        TransactionLog transactionLog) {
      this.processor = processor;
      this.transactionLog = transactionLog;
    }

+  @Override
    public Receipt chargeOrder(PizzaOrder order, CreditCard creditCard) {
      ...
    }

--~--~---------~--~----~------------~-------~--~----~
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