Top "Guice" questions

Guice is a lightweight dependency injection framework for Java.

How to bind String to variable in Guice?

I'm new to Guice and here is a naive question. I learned that we could bind String to a particular …

binding guice
Guice eager/lazy singleton instantiations

I'm having some troubles understanding how Guice's singleton instantiations works. I've read the available documentation (here - http://code.google.…

java singleton guice eager
How to specify a classifier in a gradle dependency's dependency?

Say I want to add guice-assistedinject as a dependency in my project. It specifies the guice artifact as a dependency …

java dependency-injection guice gradle dependency-management
Guice Beginner - How to bind concrete classes?

I have this class: public class House { private final Door door; private final Window window; private final Roof roof; @Inject …

java guice
Google Guice vs. PicoContainer for Dependency Injection

My team is researching dependency injection frameworks and is trying to decide between using Google-Guice and PicoContainer. We are looking …

java dependency-injection guice picocontainer
Inject Generic Implementation using Guice

I would like to be able to inject a generic implementation of a generic interface using Guice. public interface Repository&…

java ioc-container guice typeliteral
Practical advice on using Jersey and Guice for RESTful service

From what I can find online, the state of the art for Guice + Jersey integration has stagnated since 2008 when it …

java guice jersey jax-rs jsr330
Using Google Guice to inject java properties

I want to use google guice to make properties available in all classes of my application. I defined a Module …

java properties guice
Guice @Provides Methods vs Provider Classes

I'm working on a fairly large project that has a lot of injections. We're currently using a class that implements …

java dependency-injection guice roboguice
Guice call init method after instantinating an object

Is it possible to tell Guice to call some method (i.e. init()) after instantinating an object of given type? …

guice init postconstruct