Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to use Guice in web project?  RSS feed

Haulyn Jason
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?

It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!