Top "Guice" questions

Guice is a lightweight dependency injection framework for Java.

Spring and Guice together, or just Spring

I'm starting a new Java web app from scratch. I don't have much experience on Spring Framework, but I know …

java spring guice application-design web-application-design
Replacing com.google.inject with javax.inject

Is it true that javax.inject annotations can function as direct replacements for com.google.inject? So that, if I …

java gwt dependency-injection guice gwt-gin
Use of TypeLiteral in java

Please provide some basic information of how TypeLiteral in Google Guice or Java EE is used, It will be very …

java jakarta-ee guice
Guice injecting Generic type

I'am trying to Inject generic type with Guice. I have Repository< T > which is located in the Cursor …

java generics guice
Guice: implications of field injection

My understanding of Guice is that: Constructor-level injection (@Inject public class Widget(Dep one, Dep two)) implies that Guice will …

java dependency-injection guice
Can Guice inject Scala objects

In Scala, can I use Guice to inject Scala objects? For example, can I inject into s in the following …

scala guice
What's aopalliance all about? And why is guice using it?

I'm using guice for dependency injection with aop from aopalliance. I can't quite figure out what's aopalliance all about and …

aop guice aopalliance
How to bind one implementation to a few interfaces with Google Guice?

I need to bind one class as implementation of two interfaces. And it should be binded in a singleton scope. …

java dependency-injection guice
How to have a Guice module use another Guice module?

Let's say I have a Guice module ProdModule that I would like to depend on other GuiceModules, ProdDbModule and ProdPubSubModule. …

java guice
Mockito and Guice : mocking a @Provides method

I have a module in my class called MainModule. It has various bindings in it, one of which is a …

dependency-injection mockito guice vert.x