Guice (pronounced 'juice') is a lightweight dependency injection framework for Java 11 and above, brought to you by Google.
Stars
12.7k
Forks
1.7k
Watchers
12.7k
Open Issues
361
Overall repository health assessment
No package.json found
This might not be a Node.js project
346
commits
163
commits
115
commits
76
commits
26
commits
25
commits
21
commits
16
commits
16
commits
15
commits
Add a function in Guice Elements SPI that returns a list of modules installed by the input module.
8eb1cc4View on GitHubTweak Guice to suggest `toProvider(() -> null)` rather than `toProvider(Providers.of(null))`.
c683999View on GitHubPrepare MethodInterceptionTest for an upcoming JDK version
5e17283View on GitHubAnnotate Guice `*BindingBuilder#to*` APIs with `@CanIgnoreReturnValue`.
28526f0View on GitHubRemove the word "experimental" from the MethodHandles flag.
9fc2417View on GitHubEagerly ensure that user-supplied providers always return the expected type. Historically this was implicitly validated upon injection into whatever used the provider (via reflection magic). However, with the shift to MethodHandles, that particular signature check becomes harder to isolate/replicate without adding a bunch of unnecessary overhead. Thus, we instead change this to validate user-supplied providers when they provide the value (which is the soonest it can go wrong).
b82cc7bView on GitHubAdd a regression test for a bug from an earlier iteration of the MethodHandles implementation
fba0e10View on GitHubSimplify the 'factory' MethodHandle signatures to drop 'dependency' types from them
17aa84cView on GitHubAdd MethodHandle support to `@Inject` constructors/field/methods.
b8dc884View on GitHub