Author: limpbizkit
Date: Thu Apr 16 10:22:43 2009
New Revision: 933

Modified:
    wiki/InjectOnlyDirectDependencies.wiki

Log:
Edited wiki page through web user interface.

Modified: wiki/InjectOnlyDirectDependencies.wiki
==============================================================================
--- wiki/InjectOnlyDirectDependencies.wiki      (original)
+++ wiki/InjectOnlyDirectDependencies.wiki      Thu Apr 16 10:22:43 2009
@@ -21,3 +21,13 @@
      return customer.getPurchasingAccount();
    }
  }}}
+By injecting the dependency directly, our code is simpler.
+{{{
+public class ShowBudgets {
+   private final Account account;
+
+   @Inject
+   ShowBudgets(Account account) {
+     this.account = account;
+   }
+}}}
\ No newline at end of file

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"google-guice-dev" group.
To post to this group, send email to google-guice-dev@googlegroups.com
To unsubscribe from this group, send email to 
google-guice-dev+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-guice-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to