Guice: Dependency Injection You Can Actually Read
An introduction to Guice, Google's dependency injection framework for the JVM — why hand-wiring hurts, what DI really is, and how Guice keeps the wiring explicit. With Kotlin and Java side by side.
Dependency injection with Guice from the ground up — fundamentals, in Kotlin and Java.
An introduction to Guice, Google's dependency injection framework for the JVM — why hand-wiring hurts, what DI really is, and how Guice keeps the wiring explicit. With Kotlin and Java side by side.
A hands-on guice injector tutorial — the Gradle dependency, @Inject constructor injection, AbstractModule, and Guice.createInjector — with Kotlin and Java side by side.
A tour of guice bindings — linked, instance, untargeted, constructor, just-in-time, and provider — and when to reach for each, in Kotlin and Java.
How a guice provider and an @Provides method give you somewhere to put real construction logic, with lazy creation, scope-crossing, and qualifiers — in Kotlin and Java.
How guice qualifiers and @Named let you bind two implementations of the same type and inject the right one — custom annotations versus stringly-typed names, in Kotlin and Java.
How Guice scopes control object lifetimes, why @Singleton means one instance per injector, and how to apply it from the class or the binding — with Kotlin and Java side by side.
How to organize guice modules as the graph grows — install, multiple modules, Modules.combine, and Modules.override for tests and environments — with Kotlin and Java side by side.
How to read and fix a guice CreationException, the 'no implementation was bound' miss, and a circular dependency — with the fixes in Kotlin and Java.