Comment by [email protected]:
The 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 exactly like a factory pattern that takes care of building my app.
Why do I need a framework for the factory pattern?
Why is the construction of a Class with injected properties 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.