InfoQ

Topic/Tag specific view

All content and news on InfoQ about Guice


Latest featured content about Guice

Book Excerpt and Interview: Effective Java, Second Edition

Community
Java
Topics
Language

Effective Java, Second Edition by Joshua Bloch is an updated version of the classic first edition, which was the winner of a 2001 Jolt Award. This edition has been updated to discuss Java 6 language features including generics, enums, annotations, autoboxing, the for-each loop, varargs, and concurrency utilities. InfoQ asked Bloch several questions about the areas that the new edition covers.

Drinking your Guice too quickly?

Community
Architecture
Topics
Programming,
Design

Dependency Injection has been around for a while, and many teams are refactoring their applications to use DI. But it can be a struggle. In this article, Paul Hammant explains the route to take to move an existing application from a nest-of-singletons design to a full fledged DI design.

News about Guice

Try to get the best of your Statically Typed Language

Community
Architecture
Topics
Programming,
Design

The use of dynamic type-checking in static languages is often perceived as unavoidable on complex projects, even though workarounds necessary to enforce it tend to negatively impact the quality of code. According to Debasish Ghosh, features in static languages, i.e. Java generics, offer an opportunity to avoid runtime type checking and optimize the advantages of static typing.

Guice and JavaConfig: Two Approaches to IoC through Annotations

Community
Java
Topics
Artifacts & Tools

Now that the dust has settled a bit from the initial release of Guice, the comparisons with Spring IoC and specifically with Spring JavaConfig are available. Guice and JavaConfig offer different approaches on putting IoC configuration into code using Java annotations.

Guice: Fast and Light Dependency Injection Container

Community
Java
Topics
Artifacts & Tools

Guice is a new open-source Dependency Injection framework for Java 5 that is closing in on a 1.0 release. Guice is a very annotation-driven, lightweight framework that provides an alternative to Spring, for a certain set of features.