File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Other Application Frameworks and the fly likes How to use Guice in web project? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Other Application Frameworks
Bookmark "How to use Guice in web project?" Watch "How to use Guice in web project?" New topic

How to use Guice in web project?

Haulyn Jason
Ranch Hand

Joined: Jul 24, 2007
Posts: 37
I want to use Guice in my web project.
When I first time use Guice , it is with Struts2 and guice works well.
This time, I do not have any web layer framework to be used, I just want to design a simple framework, read configuration from a source and dynamic dispatch each request to different classes.
All my service are injected by Guice, but I do not know how can I start Guice.

all my service classes use @Inject annotation, and I install all modules to an ApplicationModule. But, how can I integrate this with web tier?


Mama always said, "Life is like a box of chocolates; you never know what you're gonna get. And then you have to get medieval on somebody's buttocks."
I agree. Here's the link:
subject: How to use Guice in web project?
It's not a secret anymore!