O'Reilly logo

Google Guice: Agile Lightweight Dependency Injection Framework by Robbie Vanbrabant

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Appendix: Assorted Sweets

You're probably looking at this page right now because I referred you to it earlier in this book. While writing, I had to decide which examples fit in this book and which don't. This appendix captures the examples that I wanted to share with you even though they didn't fit into the flow of the book.

The first section briefly explains how you can roll your own API that captures Guice's Binding EDSL programming model.

The next three sections lay out source code that you can use to start building your own web applications using pure Guice, Wicket, or Warp Servlet. Again, I had to make a choice for the example chapter and went with Struts 2 in the end. If you're not a fan of Struts 2, these examples will satisfy your hunger. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required