Top "Guice" questions

Guice is a lightweight dependency injection framework for Java.

Injecting Collection of Classes with Guice

I'm trying to inject things with Google Guice 2.0 and I have the following structure: FooAction implements Action BarAction implements Action …

java guice
Hibernate 4 connection.autocommit=false ignored

We have an application using Java, hibernate 4, guice 3, guice-persist 3 on tomcat 6 connection.autocommit is configured to false in the hibernate.…

java hibernate tomcat guice guice-persist
How to clear ResourceBundle cache

This is a webapp running on Tomcat, using Guice. According to the docs we should be able to call ResourceBundle.…

java tomcat guice resourcebundle
Guice - How to share the same Singleton instance through multiple injectors/modules

In guice, the @Singleton scope does not refer to the Singleton pattern. According to the "Dependency Injection" book of "Dhanji" : …

java dependency-injection singleton guice
Deferred binding failed

My application is throwing: java.lang.RuntimeException: Deferred binding failed for 'com.mygwtapp.client.gin.ClientAppGinjector' (did you forget to …

gwt dependency-injection guice gwt-gin
Guice: How do I get an instance of a TypeLiteral-wrapped generic?

I have a generic database access class, which i'm binding using the TypeLiteral construct. Now in a test i want …

java guice
Java - java.lang.NoClassDefFoundError: com/google/inject/internal/util/$Preconditions

I'm working on an extension for druid that uses jclouds for Rackspace Cloud Files and I encountered a problem with …

java guice jclouds druid
What is the best way to inject a list with google-guice?

I have three classes CircleBuilder, SquareBuilder, and TriangleBuilder implementing the ShapeBuilder interface. I need to initialize my FormBuilder and notably …

java dependency-injection guice
Does it make sense to use Guice for Android

I'm debating using guice in an android project that is quite complex and has a lot of business logic. Guice …

android guice roboguice
Weblogic 12c : Prefer-web-inf-classes and prefer-application-packages for Jersey

I have to use both (oddly enough ..) prefer-web-inf-classes and prefer-application-packages properties of weblogic.xml on a Weblogic 12c Server (12.2.1) It …

java guice weblogic12c jersey-1.0 guice-servlet