Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to use Guice in web project?

 
Haulyn Jason
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic