square/dagger — pull request #76 by swankjesse (2012-10-31 05:27:19+00:00)
Title: Documentation, style and small renaming changes.

The only behavior change is to RuntimeAggregatingPlugin. This class
used to allow other plugins to return null if they couldn't resolve
a value. If all plugins returned null, it would throw. The new
behavior is to have child plugins throw, and to rethrow the last
plugin's exception if necessary.

The upside of this change is that we emit better errors. In the new
twoAtInjectConstructorsIsRejected, we were printing this error:

No available @Inject handlers could be found for key
dagger.InjectionTest$TwoAtInjectConstructors in class
dagger.InjectionTest$TwoAtInjectConstructors required
by class dagger.InjectionTest$26TestModule

With this change the error is better:

Too many injectable constructors on
dagger.InjectionTest$TwoAtInjectConstructors required
by class dagger.InjectionTest$26TestModule

Also renaming 'augments' to 'addsTo' and ObjectGraph.extend()
to ObjectGraph.plus().

Also adding extensive documentation for Lazy.