Top "Guice" questions

Guice is a lightweight dependency injection framework for Java.

Overriding Binding in Guice

I've just started playing with Guice, and a use-case I can think of is that in a test I just …

java unit-testing guice
How to instantiate spring managed beans at runtime?

I stuck with a simple refactoring from plain java to spring. Application has a "Container" object which instantiates its parts …

java spring dependency-injection refactoring guice
Why java classes do not inherit annotations from implemented interfaces?

I've been using Guice's AOP to intercept some method calls. My class implements an interface and I would like to …

java inheritance interface annotations guice
No implementation was bound - Java Guice

Novice here trying to use a dummy Java Facebook app that uses Guice to inject a database dependency into the …

java dependency-injection annotations guice
Guice injector in JUnit tests

Using Guice, is it a good practice to get a new injector in each JUnit test class, as each test …

java junit guice code-injection
How to retrieve annotated instance from Guice's injector?

Let's say I have a module: Module extends AbstractModule { @Override protected void configure() { bind(String.class). annotatedWith(Names.named("annotation")). …

java dependency-injection configuration annotations guice
Pass parameter to constructor with Guice

I have a factory as below, public final class Application { private static IFoo foo; public static IFoo getFoo(String bar) { // …

java dependency-injection guice
How to scan classes for annotations?

I have a plain jane servlets web application, and some of my classes have the following annotations: @Controller @RequestMapping(name = "/…

java servlets guice guava
Guice configuration error: No implementation was bound

I'm trying to make DI with Guice work, doing (as it seems to me) exactly what's in the manual. I …

java dependency-injection guice
How to use Guice's AssistedInject?

I've read https://github.com/google/guice/wiki/AssistedInject, but it doesn't say how to pass in the values of …

java guice guice-3