Commit Graph
17 Commits
Author SHA1 Message Date
ronshapiroandRon Shapiro fe67d047ff Add Automatic-Module-Names to Guice and all of the extensions
https://github.com/google/guice/issues/1085

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=184283324
2018-02-02 14:44:26 -05:00
lukesandRon Shapiro dcf7bdacc2 remove unnecessary explicit type parameters now that we are on java7
-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=145716288
2017-03-21 15:28:23 -04:00
lukesandSam Berlin 751b555176 Run google-java-format on all Guice code.
configure a presubmit to ensure that it stays formatted.

Highlights include:
* simplified import order
* method annotations are now consistently defined on the preceding line
* javadoc reformatted to 100 chars column width

One test that contained line numbers in error messages had to be modified and
the formatter didn't like some of the more complicated preprocessor directives
(MOE and AOP).

To avoid formatting the copyright notices as javadoc i did a preprocessing step to rewrite the initial '/**' to '/*' using perl

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=132692207
2016-09-13 11:47:18 -04:00
gloriosoandSam Berlin f52b308298 Suppress intentional use of @Provides method outside of modules before turning on a compile error
-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=132620738
2016-09-13 11:47:12 -04:00
lukesandSam Berlin 713c06cce9 Fix issues reported by errorprone
99% of this is adding missing @Override annotations, in the long tail we also have

* insert missing calls to Assert.fail() in tests that are testing exception behavior
* rewrite a few cases of Foo.class.instanceof(c) to c instanceof Foo
* rewrite Class.newInstance - > Class.getConstructor().newInstance() which doesn't break checked exception checking.
* adding @javax.inject.Inject annotations to methods that override methods annotated with @javax.inject.Inject

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=131839622
2016-09-07 17:45:54 -04:00
christophfandSam Berlin 32780fa2a3 Update OptionalBinder javadoc comment to use toInstance() vs to() when a binding value is used.
-------------
Created by MOE: http://code.google.com/p/moe-java
MOE_MIGRATED_REVID=86504275
2015-02-24 18:28:17 -05:00
Stuart McCulloch 2fb23e39b2 Miscellaneous build improvements:
* consolidate common versions in dependencyManagement section
 * clean up OSGi metadata (remove asm/cglib imports, fix version range to account for Guava's versioning scheme)
 * update jarjar-maven-plugin to 1.9 (makes sure manifest is first entry in final jar)
 * attach correct pre-jarjar'd classes
 * fix old references to Java5
 * remove out-of-date asm:asm exclusion
 * fix versions of mini/service extensions
2014-08-17 14:44:01 +01:00
Sam Berlin c00df28be8 Automated code cleanups by internal tool.
-------------
Created by MOE: http://code.google.com/p/moe-java
MOE_MIGRATED_REVID=69390543
2014-07-01 17:06:55 -04:00
Sam Berlin b6c35cd58a Update the opensource jars to asm 5.0, fix up the POMs & ant scripts.
-------------
Created by MOE: http://code.google.com/p/moe-java
MOE_MIGRATED_REVID=63496902
2014-03-20 16:56:37 -04:00
Christian Edward Gruber 41c1c29775 Add ignores for ant build spam. 2014-02-13 10:55:32 -08:00
Stuart McCulloch 7d7277121d Actually pom versions should really be 3.1.0 to reflect the addition of a couple of new features (ProvisionListener SPI) 2012-08-31 10:41:33 +01:00
Stuart McCulloch 7f6a136a28 Bump pom versions towards next maintenance release 2012-08-31 10:14:56 +01:00
sberlin b7a02b02d8 * Remove unused imports
* Sort imports
* Convert tabs to spaces
* Fix the ant no_aop build


Revision created by MOE tool push_codebase.
MOE_MIGRATION=2532


git-svn-id: https://google-guice.googlecode.com/svn/trunk@1572 d779f126-a31b-0410-b53b-1d3aecad763e
2011-07-08 00:34:16 +00:00
mcculls bc7e1502d9 Issue 552: add buildable maven poms
git-svn-id: https://google-guice.googlecode.com/svn/trunk@1305 d779f126-a31b-0410-b53b-1d3aecad763e
2010-10-21 23:36:09 +00:00
limpbizkit@gmail.com 71548951a4 Fix singletons to be eager as intended.
git-svn-id: https://google-guice.googlecode.com/svn/trunk@1233 d779f126-a31b-0410-b53b-1d3aecad763e
2010-09-15 22:30:59 +00:00
limpbizkit@gmail.com 24f5f134bb Remove support for com.google.inject annotations from miniguice. Relying on JSR-330 classes only is simpler, and aligned with the goals for the project.
Also fixing bugs where supertype fields weren't injected.

Also improving error reporting when an injection fails to include the requiring injection. Otherwise things like "Expected injection of String" fails miserably.

git-svn-id: https://google-guice.googlecode.com/svn/trunk@1229 d779f126-a31b-0410-b53b-1d3aecad763e
2010-09-13 07:25:39 +00:00
limpbizkit@gmail.com 70248eafa9 MiniGuice, a proof of concept.
The standard Guice injector hits a diverse set of use cases with a small core. It has advanced features to make developers productive and it's very fast. And it scales to extremely large teams very well. In a world of JavaEE aircraft carriers, Guice is a sports car. 

To contrast, MiniGuice (placeholder name) is roller skates. It has barely any features and can't do anything but the bare essentials: field & constructor injection, provider methods, provider injections, singletons, and binding annotations. It's intended for use in tiny dozen-file projects maintained by a single developer in leisure time. It's only features are its compact size and implementation simplicity.

git-svn-id: https://google-guice.googlecode.com/svn/trunk@1225 d779f126-a31b-0410-b53b-1d3aecad763e
2010-09-11 08:46:08 +00:00