Top "Guice" questions

Guice is a lightweight dependency injection framework for Java.

guice injection in static variable

I Have doubt about guice injection. Is it possible to inject a @named variable value to a static variable? I …

java guice guice-3
Dependency Injection in OSGI environments

First some background: I'm working on some webapp prototype code based on Apache Sling which is OSGI based and runs …

java dependency-injection osgi guice apache-felix
Guice and properties files

Does anybody have an example of how to use Google Guice to inject properties from a .properties file. I was …

java dependency-injection guice
Guice injection null pointer

We try to refactoring a project with Guice. The idea is to bind all the Language interface to a concreate …

java nullpointerexception guice code-injection
Guice: differences between Singleton.class and @Singleton

In Guice, what's the difference between: // Inside your AbstractModule subclass: @Override public void configure() { bind(Service.class).to(ServiceImpl.class).…

java dependency-injection singleton guice
Guice - Inject dependency into a class with static helper methods

I'm still new to Guice and haven't used any DI frameworks before. After reading the official wiki and many other …

java el guice static-methods taglib
Guice: is it possible to inject modules?

I have a Module that requires some Depedency. Is there a way Modules themselves can be injected? I realize this …

java dependency-injection guice
Guice JPA - "This connection has been closed." error

After DB dropps an idle connection or DB is down and back up I'm receiving the following error in my …

jpa guice guice-persist
How to use Guice's Injector?

I'm in process of learning Guice and I don't clearly understand how to use Injector instance. It's better to create …

java guice guice-3
Dropwizard and Guice: injecting Environment

I am currently building a Dropwizard + Guice + Jersey-based application where the database access is being handled by JDBI for the …

dependency-injection guice dropwizard jdbi