wood burning stoves 2.0*
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
Author

How to use Guice in web project?

Haulyn Jason
Ranch Hand

Joined: Jul 24, 2007
Posts: 37
Hi,all
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?

Thanks.


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."
http://www.haulynjason.net/
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to use Guice in web project?