Google Guice: Agile Lightweight Dependency Injection Framework (Firstpress) (英語) ペーパーバック – 2008/4/24
Kindle 端末は必要ありません。無料 Kindle アプリのいずれかをダウンロードすると、スマートフォン、タブレットPCで Kindle 本をお読みいただけます。
Guice (pronounced “Juice”) is the Jolt Award-winning, 100% Java icing on the cake of Java dependency injection. Unlike other popular dependency injection 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 aspect-oriented programming, 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
Robbie Vanbrabant is an experienced Java developer based in Belgium. In his professional life, he advises companies how to design and implement their Java-based solutions. Robbie has a broad interest in software that goes from platforms like Java and .NET to programming languages, API design, agile processes, and developer productivity. Following that interest, he recently discovered Google's Guice, a lightweight, elegant, and purely Java-based dependency injection framework. Since then, he's been one of the most active members in the Guice community and can often be found on the mailing list answering questions. To catch up with him online, you can visit his blog at GarbageCollected.org.
On the other hand, the much-improved (and much-different) Guice 2.0 is currently in beta. As is Spring 3.0, which has a far richer feature set (some might call it absurdly large) than Guice; the two aren't exclusive, but if you use Spring, you should ask whether you really need to add Guice. And an upcoming book, Dependency Injection in Action (which you can buy an early eBook of through Manning's MEAP program) covers Guice more thoroughly. So if you do get this book, it might not be useful for very long.
[Edit: Guice 2.0 has now been released. I'd avoid this book and learn the new version instead.]
Perhaps the final edition of this book will improve, but this version is very weak.
Already in my Spring-dominated office I have had a manager and another developer, both conservative in their technologies, pick up the book, read it, and come back to me sold on trying out Guice in a project. Guice is that good; so is the book.
Author somehow failed to explain Guice in nice and simple examples.