InfoQ

InfoQ

Topic/Tag specific view

Guice Content on InfoQ


Latest featured content about Guice

Classloader Acrobatics: Code Generation with OSGi

Topics
Java

Porting great infrastructure to OSGi often means solving complex classloading problems. This article is dedicated to the frameworks that face the hardest issues in this area: those that do dynamic code generation. Incidentally these are also the coolest frameworks: AOP wrappers, ORM mappers, and service proxy generators are just a few examples.

News about Guice

Maven to be Built on Guice

Topics
Artifacts & Tools,
Build systems,
Java

Sonatype, the professional services company that sponsors the development of many key Maven committers, has announced that they will build Maven 3 atop the Guice Dependency Injection (DI) container instead of the Plexus DI container employed for Maven 1 and 2. Backwards compatability will be ensured using a shim to support Plexus.

Decoupling Your Application From Your Dependency Injection Framework

Topics
Ruby,
SOA,
Object Oriented Design,
Java,
Agile,
.NET,
Design,
Architecture

Dependency Injection has become a much more accepted and accessible approach in recent years, driven by many factors including increased popularity in SOA, TDD, and many other factors. With this has come increased usage of Dependency Injection frameworks. Bob Martin advises, with examples, applying a decoupling approach between your application code and your Dependency Injection framework.

Google Sitebricks Web Framework - Q&A with Dhanji Prasanna

Topics
Java,
Web Frameworks

Sitebricks is a new web application development framework from Google that is built on top of Google Guice, and focuses on early error detection, low-footprint code, and fast development. InfoQ had a Q&A with the creator and Google Wave Core Engineer Dhanji Prasanna.

Dependency Injection harmonized for Java EE 6

Topics
Java,
JCP Standards

Earlier this year, Google and SpringSource announced that they were co-operating on a standard set of annotations to be used for dependency injection which were proposed via JSR-330. These annotations didn't line up with those proposed for JSR-299, which generated controversy that has now been resolved, with JSR-299 adopting the JSR-330 annotations and both moving forward to be part of Java EE 6.

Google Guice 2.0: Enhanced Capabilities, Less Boilerplate

Topics
Java,
Programming

Guice, a lightweight Java dependency injection framework created by Google, recently released version 2.0. InfoQ spoke with Google Developer Team member Jesse Wilson to learn more about this release and what capabilities it adds to Guice.

Articles about Guice

Book Excerpt and Interview: Dependency Injection

Topics
Java,
AOP,
Design Pattern,
Software Testing

Dependency Injection by Dhanji R. Prasanna is a book that tries to explore the DI idiom in detail, and present techniques in Spring and Guice. Dhanji is a Google software engineer who works on Google Wave and also contributes to Guice, MVEL, and other open source projects.

Book Excerpt and Interview: Effective Java, Second Edition

Topics
Java,
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?

Topics
Programming,
Architecture,
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.