bineanzhou / google-guice

Automatically exported from code.google.com/p/google-guice
Apache License 2.0
0 stars 0 forks source link

Unify commands and Binder SPI #205

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Rename Command to Element, and unify BindCommand and Binding.

Getting this right is hard. 

Commands don't always know their scopes. They don't know the linked bindings. 
We can have 
untargetted commands, that are later resolved via @ProvidedBy etc.

Original issue reported on code.google.com by limpbizkit on 9 Jun 2008 at 7:02

GoogleCodeExporter commented 9 years ago
Most of the unification is complete! The commit log provides highlights:
  http://code.google.com/p/google-guice/source/detail?r=567

Still outstanding:
 - Kill commands and the oldversion SPI before 2.0
 - Thorough Javadoc
 - Merge BindConstant and Binding
 - Integrate InjectionPoints with Binding

Original comment by limpbizkit on 28 Jul 2008 at 7:47

GoogleCodeExporter commented 9 years ago
Added Javadoc, Merged BindConstant and Binding.

Still need to kill oldversion, commands and figure out how to better integrate 
InjectionPoints.

Original comment by limpbizkit on 1 Aug 2008 at 7:39

GoogleCodeExporter commented 9 years ago
InjectionPoints are integrated, and the new SPI is complete. Hooray!

The most interesting part of this change is that InjectionPoint now has public 
API methods to find the @Inject 
InjectionPoints on a given type. I think this is A Good Thing, especially since 
it allows tools to use our exact 
same logic for deciding what will be injected.

Original comment by limpbizkit on 5 Sep 2008 at 10:33