Tag Archives: Guice

GWT + Guice servlet Example

This downloadable maven project integrates GWT with Guice while you can define web scoped components by annotations. Guice Servlet provides a complete story for use in web applications and servlet containers. Guice’s servlet extensions allow you to completely eliminate web.xml from your servlet application and take advantage of type-safe, idiomatic Java configuration of your servlet and filter components. This example… Read more »

Guice-repository simple example

If you like Spring DATA-JPA’s repository pattern, but you want to use it in a guice project, there is a library for that called guice-repository. The only drawback of using this library is that it pulls almost the entire spring framework as a dependency since it uses it’s classes. This simple example project has: Dependency Injection through Guice(@Inject), JPA Repositories(Spring’s… Read more »