Category Archives: Design Patterns
-
Using Google Guice in Web Applications
45 February 2013 by ludovicianul
Introduction As promised in the previous article I’ll continue presenting Google Guice also for web applications. In order to do …
Continue reading -
Guice – a lightweight DI framework alternative to Spring
33 February 2012 by ludovicianul
What is Guice? To quote from the Guice official page “Guice alleviates the need for factories and the use of new in …
Continue reading -
How to inject Spring beans into Servlets
58 September 2011 by ludovicianul
This can be achieved in 3 simple steps: 1. Implement HttpRequestHandler First of all your servlet class must implement the org.springframework.web.HttpRequestHandlerinterface …
Continue reading -
The Generic DAO pattern in Java with Spring 3 and JPA 2.0
207 September 2011 by ludovicianul
One thing that annoys me the most is code duplication. The DAO layer is the perfect candidate for this kind …
Continue reading
