Branch: refs/heads/master
Home: https://github.com/google/guice
Commit: f11bf2d26ccd07e72805b789b33d855e223b1ed7
https://github.com/google/guice/commit/f11bf2d26ccd07e72805b789b33d855e223b1ed7
Author: dweis <[email protected]>
Date: 2015-02-03 (Tue, 03 Feb 2015)
Changed paths:
M core/src/com/google/inject/internal/Annotations.java
M core/test/com/google/inject/ScopesTest.java
Log Message:
-----------
Make Guice ignore validation of scope annotations on abstract types for types
annotated with @Component. This allows one to provide Dagger Components with
Guice Injectors.
-------------
Created by MOE: http://code.google.com/p/moe-java
MOE_MIGRATED_REVID=84836495
Commit: 9867f9c2142355ae958f9eeb8fb96811082c8812
https://github.com/google/guice/commit/9867f9c2142355ae958f9eeb8fb96811082c8812
Author: sameb <[email protected]>
Date: 2015-02-03 (Tue, 03 Feb 2015)
Changed paths:
M core/src/com/google/inject/Binder.java
M core/src/com/google/inject/internal/Errors.java
M core/src/com/google/inject/internal/InjectorImpl.java
M core/src/com/google/inject/internal/InternalFlags.java
M core/src/com/google/inject/internal/LookupProcessor.java
M core/src/com/google/inject/internal/ProviderMethodsModule.java
M core/src/com/google/inject/spi/Elements.java
M core/src/com/google/inject/spi/InjectionPoint.java
M core/src/com/google/inject/spi/ProviderLookup.java
M core/test/com/google/inject/spi/ProviderMethodsTest.java
Log Message:
-----------
Implement my old patch for issue #366, with some tweaks. This does the
following:
* Fixes @Provides injection so that parameters are checked for nullability.
By default this will error. The flag is named:
guice_check_nullable_provides_params and can be set to ERROR, WARNING or IGNORE.
* Adds InjectionPoint.forMethod to build an InjectionPoint off an arbitrary
method.
* Adds Binder.getProvider(Dependency) to a get a Provider for a given
dependency (with all its nullability & injection points maintained).
* Update ProviderLookup to accept a Dependency in addition to a Key.
This is in preparation for two things:
1) Allowing multibindings/mapbindings/optionalbindings to be specified as
annotations on methods in a module.
2) Adding a dagger compatibility module.
... the general idea will be that I'll also add a hook into
ProvidesMethodModule somehow to look at arbitrary other annotations and let
folks process them specially.
-------------
Created by MOE: http://code.google.com/p/moe-java
MOE_MIGRATED_REVID=85353820
Commit: e18906acc38e436613d01b0b96cf5c09623ec987
https://github.com/google/guice/commit/e18906acc38e436613d01b0b96cf5c09623ec987
Author: sameb <[email protected]>
Date: 2015-02-03 (Tue, 03 Feb 2015)
Changed paths:
M core/src/com/google/inject/internal/ProviderMethod.java
M core/src/com/google/inject/internal/ProviderMethodsModule.java
A core/src/com/google/inject/spi/ModuleAnnotatedMethodScanner.java
M core/src/com/google/inject/spi/ProvidesMethodBinding.java
M core/test/com/google/inject/AllTests.java
A core/test/com/google/inject/spi/ModuleAnnotatedMethodScannerTest.java
Log Message:
-----------
Add some SPI methods to allow users to annotate Module methods with arbitrary
bindings and have those methods bound as Providers to specialized Keys.
This is the basis of what will be used to allow
Multibinder/MapBinder/OptionalBinder to have stuff like @SetProvides,
@MapProvides, @OptionalProvides and dagger interop support.
-------------
Created by MOE: http://code.google.com/p/moe-java
MOE_MIGRATED_REVID=85361820
Commit: 74519f5b0ac4cc00c58db242903dad26e27d47b2
https://github.com/google/guice/commit/74519f5b0ac4cc00c58db242903dad26e27d47b2
Author: sameb <[email protected]>
Date: 2015-02-03 (Tue, 03 Feb 2015)
Changed paths:
M core/src/com/google/inject/internal/Errors.java
Log Message:
-----------
Only warn one per dependency, otherwise log spam can destroy disks. This
time w/o using Sets.newConcurrentHashSet.,
-------------
Created by MOE: http://code.google.com/p/moe-java
MOE_MIGRATED_REVID=85377786
Commit: 7ddc816ddc30f328690193be6e70a476a71899e7
https://github.com/google/guice/commit/7ddc816ddc30f328690193be6e70a476a71899e7
Author: Sam Berlin <[email protected]>
Date: 2015-02-03 (Tue, 03 Feb 2015)
Changed paths:
M core/src/com/google/inject/Binder.java
M core/src/com/google/inject/internal/Annotations.java
M core/src/com/google/inject/internal/Errors.java
M core/src/com/google/inject/internal/InjectorImpl.java
M core/src/com/google/inject/internal/InternalFlags.java
M core/src/com/google/inject/internal/LookupProcessor.java
M core/src/com/google/inject/internal/ProviderMethod.java
M core/src/com/google/inject/internal/ProviderMethodsModule.java
M core/src/com/google/inject/spi/Elements.java
M core/src/com/google/inject/spi/InjectionPoint.java
A core/src/com/google/inject/spi/ModuleAnnotatedMethodScanner.java
M core/src/com/google/inject/spi/ProviderLookup.java
M core/src/com/google/inject/spi/ProvidesMethodBinding.java
M core/test/com/google/inject/AllTests.java
M core/test/com/google/inject/ScopesTest.java
A core/test/com/google/inject/spi/ModuleAnnotatedMethodScannerTest.java
M core/test/com/google/inject/spi/ProviderMethodsTest.java
Log Message:
-----------
Merge pull request #902 from google/merge-moe-changes
Merge moe changes
Compare: https://github.com/google/guice/compare/b605a34702d8...7ddc816ddc30
--
You received this message because you are subscribed to the Google Groups
"google-guice-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-guice-dev.
For more options, visit https://groups.google.com/d/optout.