c6c118f787a790ee0f29a23d52c1f5a56297bc05 |
|
25-Jul-2014 |
Sam Berlin <sberlin@gmail.com> |
Add closing parens to FactoryModuleBuilder javadoc samples Fixes issue 826.
/external/guice/extensions/assistedinject/src/com/google/inject/assistedinject/FactoryModuleBuilder.java
|
a23bc0e97c2a45f47b55e1cb9a7edb0d41c2ef76 |
|
03-May-2014 |
Sam Berlin <sameb@google.com> |
Implement hashCode and equals in FactoryProvider/FactoryProvider2, with the aim of allowing Guice to dedupe bindings. Reroll of earlier change with a bug fixed. ------------- Created by MOE: http://code.google.com/p/moe-java MOE_MIGRATED_REVID=65611245
/external/guice/extensions/assistedinject/src/com/google/inject/assistedinject/FactoryModuleBuilder.java
|
20dd9afe0aa02f92cb642bc0c88f920799e6a7c5 |
|
03-May-2014 |
Sam Berlin <sameb@google.com> |
Automated rollback. *** Reason for rollback *** equals method too liberal in what can be equal *** Original change description *** Implement hashCode and equals in FactoryProvider/FactoryProvider2, with the aim of allowing Guice to dedupe bindings. Also fixed a bunch of niggly Eclipse warnings, but this will be easy to remove if it's not wanted. *** ------------- Created by MOE: http://code.google.com/p/moe-java MOE_MIGRATED_REVID=65608468
/external/guice/extensions/assistedinject/src/com/google/inject/assistedinject/FactoryModuleBuilder.java
|
615f61f109f39b81f1c87b70b24080c578f00c04 |
|
03-May-2014 |
Sam Berlin <sameb@google.com> |
Implement hashCode and equals in FactoryProvider/FactoryProvider2, with the aim of allowing Guice to dedupe bindings. Also fixed a bunch of niggly Eclipse warnings, but this will be easy to remove if it's not wanted. ------------- Created by MOE: http://code.google.com/p/moe-java MOE_MIGRATED_REVID=65607792
/external/guice/extensions/assistedinject/src/com/google/inject/assistedinject/FactoryModuleBuilder.java
|
405828baafef04878c8b5bd57f90a9740bbef4a6 |
|
06-Feb-2011 |
sberlin <sberlin@d779f126-a31b-0410-b53b-1d3aecad763e> |
issues 592 & 591, documentation updates. git-svn-id: https://google-guice.googlecode.com/svn/trunk@1491 d779f126-a31b-0410-b53b-1d3aecad763e
/external/guice/extensions/assistedinject/src/com/google/inject/assistedinject/FactoryModuleBuilder.java
|
fdd95007ad6f2ef60e57c174c546f5c7678cb714 |
|
03-Nov-2010 |
sberlin <sberlin@d779f126-a31b-0410-b53b-1d3aecad763e> |
made new classes final. git-svn-id: https://google-guice.googlecode.com/svn/trunk@1359 d779f126-a31b-0410-b53b-1d3aecad763e
/external/guice/extensions/assistedinject/src/com/google/inject/assistedinject/FactoryModuleBuilder.java
|
c13b5454a5cfa7d188e9a047017ac0de63ec4dfb |
|
31-Oct-2010 |
sberlin <sberlin@d779f126-a31b-0410-b53b-1d3aecad763e> |
adding more missing @since 3.0 tags. git-svn-id: https://google-guice.googlecode.com/svn/trunk@1335 d779f126-a31b-0410-b53b-1d3aecad763e
/external/guice/extensions/assistedinject/src/com/google/inject/assistedinject/FactoryModuleBuilder.java
|
4b91955979afbbfff317b36af89b6bd1a1aa9b47 |
|
17-Oct-2010 |
sberlin <sberlin@d779f126-a31b-0410-b53b-1d3aecad763e> |
patch from ramakrishna (with very minor changes from me) for an extension SPI for assisted inject. git-svn-id: https://google-guice.googlecode.com/svn/trunk@1293 d779f126-a31b-0410-b53b-1d3aecad763e
/external/guice/extensions/assistedinject/src/com/google/inject/assistedinject/FactoryModuleBuilder.java
|
b5a75ed3c72d772e7dc9f771a63b3e7226695919 |
|
31-Jul-2010 |
sberlin <sberlin@d779f126-a31b-0410-b53b-1d3aecad763e> |
issue 506 - fail fast & with a useful error message when an AssistedInject factory has Provider<T> as a factory type. patch ( slightly modified) by ffaber. git-svn-id: https://google-guice.googlecode.com/svn/trunk@1192 d779f126-a31b-0410-b53b-1d3aecad763e
/external/guice/extensions/assistedinject/src/com/google/inject/assistedinject/FactoryModuleBuilder.java
|
88f9a14dc9fa9f6704f8a86e376b7f218e492f98 |
|
17-Jul-2010 |
sberlin@gmail.com <sberlin@gmail.com@d779f126-a31b-0410-b53b-1d3aecad763e> |
remove confusing behavior from assistedinject -- it used to allow factory creations to be resolved by the injector if the return key matched something in the injector. now it always creates new objects. the prior behavior created a scenario where, if the following pseudo-code was used... public class Bar { ... } interface BarFactory { Bar createBar(...); } ... protected void configure() { // allow custom Bars to be created if using BarFactory install(new FactoryModuleBuilder().build(BarFactory.class)); } @Provides Bar defaultBar() { // allow a default value return new Bar(...); } ...Someone wants to allow default Bars to be injected AND create custom ones if using BarFactory. But, AssistedInject didn't actually do that. When someone called BarFactory.create(...), it returned the bar created from the @Provides method, because AssistedInject saw the main injector had a binding for Bar. This removes that behavior, so AssistedInject will always create a new Bar when its factory method is called. git-svn-id: https://google-guice.googlecode.com/svn/trunk@1189 d779f126-a31b-0410-b53b-1d3aecad763e
/external/guice/extensions/assistedinject/src/com/google/inject/assistedinject/FactoryModuleBuilder.java
|
3748e4a0979e6332ab9f0a3601ab5b8e595b7a12 |
|
23-May-2010 |
sberlin <sberlin@d779f126-a31b-0410-b53b-1d3aecad763e> |
issue 329 - cleanup error message for under-specified assistedinject factory. git-svn-id: https://google-guice.googlecode.com/svn/trunk@1165 d779f126-a31b-0410-b53b-1d3aecad763e
/external/guice/extensions/assistedinject/src/com/google/inject/assistedinject/FactoryModuleBuilder.java
|
b5ec94a953eb64b773e56658f50e728f47519288 |
|
27-Mar-2010 |
sberlin <sberlin@d779f126-a31b-0410-b53b-1d3aecad763e> |
patch AssistedInject extension to support multi-constructor injection with FactoryModuleBuilder. reuses @AssistedInject annotation to mark valid constructors. undeprecates @AssistedInject. deprecates FactoryProvider in favor of FactoryModuleBuilder now that all functionality is matched and performance problems are fixed. you can still get the "old" behavior (ordered matching of parameters, non-guiced objects, etc..) by using @AssistedInject+FactoryProvider, but using @Inject or @AssistedInject with FactoryModuleBuilder will give you the new behavior. git-svn-id: https://google-guice.googlecode.com/svn/trunk@1148 d779f126-a31b-0410-b53b-1d3aecad763e
/external/guice/extensions/assistedinject/src/com/google/inject/assistedinject/FactoryModuleBuilder.java
|
02d505cd72ebdfe2ccfce560969797c4b00f2bc2 |
|
19-Aug-2009 |
netdpb <netdpb@d779f126-a31b-0410-b53b-1d3aecad763e> |
Fixed typo in documentation. git-svn-id: https://google-guice.googlecode.com/svn/trunk@1065 d779f126-a31b-0410-b53b-1d3aecad763e
/external/guice/extensions/assistedinject/src/com/google/inject/assistedinject/FactoryModuleBuilder.java
|
6840fcbcaaf1dda6b1eb387b1b7811599a69eaa5 |
|
19-Aug-2009 |
limpbizkit <limpbizkit@d779f126-a31b-0410-b53b-1d3aecad763e> |
Jesse's tweaks to aragos' patch r1063. His patch was quite well implemented and these changes are mostly pedantic. Most notably, I un-deprecated FactoryProvider, replacing the deprecation tag with an obsolete warning. We should make a best effort to fix deprecated callers before we deprecate something, otherwise we're punishing our users for our own mistakes. git-svn-id: https://google-guice.googlecode.com/svn/trunk@1064 d779f126-a31b-0410-b53b-1d3aecad763e
/external/guice/extensions/assistedinject/src/com/google/inject/assistedinject/FactoryModuleBuilder.java
|
c1e65da70833eadebf37a37b559ce81536c30288 |
|
19-Aug-2009 |
limpbizkit <limpbizkit@d779f126-a31b-0410-b53b-1d3aecad763e> |
aragos' four-month old patch for issue 346, wherein he adds FactoryModuleBuilder. git-svn-id: https://google-guice.googlecode.com/svn/trunk@1063 d779f126-a31b-0410-b53b-1d3aecad763e
/external/guice/extensions/assistedinject/src/com/google/inject/assistedinject/FactoryModuleBuilder.java
|