Java: Dependency Injection using Google Guice
By admin on Jun 22, 2008 in Java, open source
As quoted from the website, Guice alleviates the need for factories and the use of new in your Java code. Think of Guice’s @Inject as the new new. You will still need to write factories in some cases, but your code will not depend directly on them. Your code will be easier to change, unit test and reuse in other contexts.
Guice embraces Java’s type safe nature, especially when it comes to features introduced in Java 5 such as generics and annotations. You might think of Guice as filling in missing features for core Java.
Guice is used in mission critical applications. I am currently trying it out in one of my proof of concepts.
Sorry, comments for this entry are closed at this time.