Comment by [email protected]:

he code at the bottom of the page:

{{{
public static void main(String[] args) {
    Injector injector = Guice.createInjector(new BillingModule());
BillingService billingService = injector.getInstance(BillingService.class);
    ...
  }
}}}

looks like an abstract factory pattern that takes care of building my stuff. Why do I need a framework for the factory pattern? Or am I missing anything?

Why is the construction of a Class with injected properties *not* as easy as calling `new` on it?

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.

Reply via email to