Comment #20 on issue 131 by limpbizkit: partial injection a.k.a. factory  
generation
http://code.google.com/p/google-guice/issues/detail?id=131

@gili Dan's API actually looks like this in its most compact form:
   install(new FactoryModule(PaymentFactory.class).binding(Payment.class,  
RealPayment.class));
But in any case, an install() API is less repetitive.

The bind() API is very simple. It's explicit that one binding is added and  
what type the binding is for. You don't
need to read the Javadoc to figure out which bindings (or scopes, or  
interceptors) will be created.

I could be persuaded either way on this, but the duplication doesn't offend  
me. Trying to minimize characters
isn't the ultimate way to write maintainable, predictable programs.

-- 
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

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