PacktLib: Learning Google Guice

Learning Google Guice

Credits

About the Author

Acknowledgments

About the Reviewers

www.PacktPub.com

Preface

Getting Started with Guice

Wiring dependencies

Comparing two approaches

Building and Running the examples

Summary

Exploring Google Guice

Meet the injector

Configuring a module to write bindings

Static injection

Summary

Diving Deeper in Guice

Going the extra mile with Providers

AssistedInject

Binding collections

Scoping

Summary

Guice in Web Development

Structure of flightsweb application

Using GuiceFilter

Rolling out our ServletContextListener interface

ServletModule – the entry point for configurations

Binding language

Web scopes

Summary

Integrating Guice with Struts 2

Introducing Struts 2

Summary

Integrating Guice with JPA 2

Introduction to JPA 2 and Hibernate 3

Guice 3 with JPA 2

FlightSearch application with JPA 2 and Hibernate 3

Summary

Developing Plugins and Extensions using Guice

Developing a plugin

Guice SPI (Service Provider Interface)

Exploring a custom extension, guice-multibinder

Summary

AOP with Guice

What is AOP?

How AOP works?

How Guice supports AOP?

Concerns related to performance

Summary

Prerequisites

Prerequisites

Prerequisites

Prerequisites

Prerequisites

Prerequisites

Prerequisites

Prerequisites

Prerequisites

Index