submited by krishnas on Thu May 22nd, 2008
google-guice
Google Guice is an open source Dependency Injection framework from Google. Guice is based on annotations and generics unlike Spring which depends on XML of Java for wiring dependencies. Guice injects constructors, fields and methods (any methods with any number of arguments, not just setters). Guice provides support for custom scopes, static member injection, Spring as well as Struts 2.x integration and AOP Alliance method interception. Guice is available at Google Code. You can find the User guide and Javadocs from there. This post describes how I implemented a simple Web application using Guice. For injecting dependencies into Servlets, I used a Listener (this idea was from Hani Suleiman in the Guice developer mailing list). Follow these steps to run the example....
more »
submited by krishnas on Thu Mar 27th, 2008
spring google-guice
Guice is alternative to Spring framework except life cycle management.
I like Guice framework over Spring for the following reason....
more »
submited by krishnas on Thu Mar 27th, 2008
jsf google-guice
Special thanks to my teammate Çağatay Çivici for inspiring me on this one. I will never be able to pronounce his name correctly, but that certainly doesn't stop me from taking one of his good ideas and running with it.
...
more »
submited by krishnas on Thu Mar 27th, 2008
hibernate google-guice
In this Blog you will see how to add Google-Guice functionality to a Hibernate-Application. In Part I i will introduce a simple Hibernate-Application. In Part II you can see how this Application will be transformed for using Guice....
more »
submited by krishnas on Thu Mar 27th, 2008
google-guice
Google Guice is a an open source Java framework released by Google under Apache License 2.0. Guice is a light weight Inversion of Control Container. It does what Spring does regarding dependency inversion aspect, without using xml files. Guide uses annotations and requires Java 1.5 or above and follows the Google philosophy of being really easy to use....
more »
submited by krishnas on Thu Mar 27th, 2008
java java6 google-guice
Google Guice is a lightweight dependency injection framework for Java 5 (or later), which is explained here very well....
more »
submited by krishnas on Thu Mar 27th, 2008
google-guice
Warp-persist (now version 1.0) provides a thin layer of integration for injecting and managing persistence using Hibernate, JPA (so far TopLink Essentials, OpenJPA and Hibernate have shown success) or db4objects in Guice-driven applications. It provides support for declarative transactions and units-of-work using a flexible @Transactional annotation....
more »
submited by krishnas on Wed Nov 28th, 2007
spring google-guice
At the weekend I managed to get some free time away from working on our next release to look at a recent benchmark that compared the performance of Google Guice 1.0 with Spring 2.5. The benchmark referred to in the article as a modified version of Crazy Bob’s “Semi Useless” Benchmark is interesting not in terms of the results but in the analysis of the results and test construction. After reviewing the findings and benchmark code I thought it would be a good idea to instrument particular parts in the code with our Probes resource metering framework to better understand some peculiarities reported and to show how I use JXInsight Probes myself....
more »
submited by krishnas on Mon Jul 30th, 2007
spring google-guice
With all of the excitement surrounding Guice lately, I thought it might be worthwhile to compare Guice with Spring JavaConfig. Both represent different approaches to annotation-based dependency-injection. I've chosen to reimplement my knight/quest example from chapter 1 of Spring in Action to illustrate the basics of each option....
more »
submited by krishnas on Thu Jul 26th, 2007
jsf google-guice
I was wondering about how the integration of JSF and the community’s new hot IOC Framework Guice can be done and later figured out a way. The example I’ve created is simple, there’s a JSF page used for creating an Account entity,...
more »