Want to read Slashdot from your mobile device? Point it at m.slashdot.org and keep reading!

 



Forgot your password?
typodupeerror
Note: You can take 10% off all Slashdot Deals with coupon code "slashdot10off." ×
Java

Submission + - Google Guices up Java dependency injection

LauraW writes: "Google recently open sourced Guice, a dependency injection framework for Java 1.5, under the Apache License. Guice bucks the "convention over configuration" trend started by Ruby on Rails in favor of concise but explicit configuration and maintainability. Unlike other J2EE frameworks such as Spring, Guice does only dependency injection, but does it very well, taking full advantage of modern Java features such as annotations and generics. Google is currently using Guice in mission-critical enterprise applications such as AdWords, and other companies are starting to experiment with it as well.

Disclaimer: I am a Google engineer. I didn't contribute to Guice, but I use it in my projects and think it's insanely great."
Java

Submission + - IoC: Comparing Guice to Spring

rjrjr writes: "There's a new kid on the block of Java dependency injection, Google's Guice (pronounced "juice"). Eric Burke wrote up this comparison of Guice and Spring. Here's a choice quote:

At the end of the day, I compared my modules — written in Java — to my Spring XML files. The modules are significantly smaller and easier to read. Then I realized about 3/4 of the code in my modules was unnecessary, so I stripped it out. They were reduced to just a few lines of code each.
"
Java

Submission + - Guice 1.0, Java Dependency Injection from Google

Bob Lee writes: "We're pleased to announce the open source release of Google's internal Java dependency injection framework Guice. Guice wholly embraces annotations and generics, thereby enabling you to wire together and test objects with less effort than ever before. Annotations finally free you from error-prone, refactoring-adverse string identifiers."

When you make your mark in the world, watch out for guys with erasers. -- The Wall Street Journal

Working...