Title Statements
- Full title :Learning Google Guice.
Summary
This book is a practical, hands-on guide that covers everything you need to know about application development in Java with dependency injection using Google Guice. Learning Google Guice is for architects and lead programmers who want to know more about Google Guice and how to leverage its more advanced features. It is assumed that readers will have a basic knowledge of dependency injection; however, this is not an obligation.
Read More ↓Edition Statements
- Publication Date:2013.
Publication Statements
- Publisher(s):Packt Publishing
- Language:eng
- Publication Date:2013.
The Physical Object
- Description:1 online resource
Edition Identifiers
- ISBN:1299926355, 9781299926356, 1783281898, 9781783281893, 9781783281909, 1783281901
- oclc:ocn859388932
- LC Classification:QA76.73.J38 .P384 2013
- Dewey Decimal:005.76
Table of Contents
Cover; Copyright; Credits; About the Author; Acknowledgments; About the Reviewers; www.PacktPub.com; Preface; Chapter 1: Getting Started with Guice; Wiring dependencies; Resolving dependencies directly; Inverting the dependencies; Understanding Inversion of Control; Inverting the control using Dependency injection; Comparing two approaches; Initializing dependencies directly; Refactoring to use Guice; Building and Running the examples; Compiling the sample code; Running Unit tests; Running the main application; Summary; Chapter 2: Exploring Google Guice; Meet the injector.
Various kinds of injectionsField injection; Method injection; Constructor injection; Configuring a module to write bindings; Bindings; Linked bindings; Instance bindings; Untargeted bindings; Constructor bindings; Binding annotations; Binding constants; Binding properties; Just in time bindings; By default constructors; @Inject annotated constructors; Interfaces annotated with @ImplementedBy; Static injection; Summary; Chapter 3: Diving Deeper in Guice; Going extra mile with Providers; Need for a Provider; Working of Provider; Rolling your own Provider; Injecting dependencies in Providers.
Advantages of Provid…
Subjects
Writers
More from this Series
No reviews yet. Be the first to rate this work.
Rate & Review