Guice (pronounced "Juice") is the 100% Java icing on the cake of Java dependency injection. Unlike other popular DI frameworks such as Spring, Guice fully embraces modern Java language features and combines simplicity with stunning performance and developer-friendliness.
Google Guice: Agile Lightweight Dependency Injection Framework will not only tell you "how," it will also tell you "why" and "why not," so that all the knowledge you gain will be as widely applicable as possible. Filled with examples and background information, this book is an invaluable addition to your knowledge of modern agile Java.
- Learn simple annotation-driven dependency injection, scoping and AOP, and why it all works the way it works.
- Be the first to familiarize yourself with concepts that are likely to be included in a future Java EE or SE release (through JSR 299).
- Get things done without having to write any XML.
What you'll learn
- Find out why dependency injection frameworks solve your problems, and how Guice fills that gap.
- What Guice can do, can't do and how to apply that knowledge.
- How Guice compares to popular alternatives like the Spring Framework.
- What the future has in store, including Guice IDE, the next Guice version and the standardization of Guice's concepts through JSR 299.
- How you can build real world, Guice-powered web applications using popular frameworks like Wicket or Struts 2.
- How to develop a full stack Guice / Struts 2 / Hibernate application.
- What you can really do with modern Java.
Who is this book for?
This book is for professional Java developers who are interested in dependency injection, modern Java coding practices and who want to tackle complexity with a simple, powerful and high-quality solution that already powers one of Google's highest profile applications: AdWords. This may be an alternative to Spring for many.