Revision: 1051 Author: limpbizkit Date: Thu Jul 30 10:29:45 2009 Log: Edited wiki page through web user interface. http://code.google.com/p/google-guice/source/detail?r=1051
Modified: /wiki/GettingStarted.wiki ======================================= --- /wiki/GettingStarted.wiki Tue Feb 24 23:30:38 2009 +++ /wiki/GettingStarted.wiki Thu Jul 30 10:29:45 2009 @@ -1,6 +1,6 @@ #summary How to start doing dependency injection with Guice. =Getting Started= -With dependency injection, objects accept dependencies in their constructors. To build an object, you first build it's dependencies. To build the dependencies, you need to _their_ dependencies, and so on. So when you build an object, you really need to build an *object graph*. +With dependency injection, objects accept dependencies in their constructors. To construct an object, you first build it's dependencies. But to build each dependency, you need _its_ dependencies, and so on. So when you build an object, you really need to build an *object graph*. Building object graphs by hand is labour intensive, error prone, and makes testing difficult. Instead, Guice can build the object graph for you. But first, Guice needs to be configured to build the graph exactly as you want it. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
