Learning Google Guice. (2013)
- Record Type:
- Book
- Title:
- Learning Google Guice. (2013)
- Main Title:
- Learning Google Guice.
- Other Names:
- Pithawala, Hussain
- 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 Provider@Provides; CheckedProviders; @CheckedProvides; AssitedInject; Binding collections; Using TypeLiteral; Using MultiBinder; Scoping; Singletons with Guice; Eager Singletons; Custom Scopes; Motivation to write a custom scope; Modifying our Provider; Defining our own scope; Changes in Module;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 Provider@Provides; CheckedProviders; @CheckedProvides; AssitedInject; Binding collections; Using TypeLiteral; Using MultiBinder; Scoping; Singletons with Guice; Eager Singletons; Custom Scopes; Motivation to write a custom scope; Modifying our Provider; Defining our own scope; Changes in Module; Observations; Summary; Chapter 4: Guice in Web Development; Structure of flightsweb application; Using GuiceFilter; Rolling out our ServletContextListener interface; ServletModule -- the entry point for configurations; Binding language; Mapping servlets; Mapping filters; Web scopes. @RequestScoped@SessionScoped; @RequestParameters; Exercising caution while scoping; Summary; Chapter 5: Integrating Guice with Struts 2; Introducing Struts 2; Guice 3 and Struts 2 integration; Struts2GuicePluginModule; Struts2Factory; FlightSearch application with Struts 2; FlightServletContexListener; Index page; FlightSearchAction; Response page; Summary; Chapter 6: Integrating Guice with JPA 2; Introduction to JPA 2 and Hibernate 3; Persistence Unit; PersistenceContext; EntityManagerFactory; EntityManager; Session Strategies; Guice 3 with JPA 2; PersistService; UnitOfWork. JpaPersistServicePersistFilter; @Transactional; JpaLocalTxnInterceptor; JpaPersistModule; FlightSearch application with JPA 2 and Hibernate 3; Persistence.xml; Client; SearchResponse; FlightEngineModule; FlightJPASupplier; FlightServletContextListener; Summary; Chapter 7: Developing Plugins and Extensions using Guice; Developing a plugin; Guice SPI (Service Provider Interface); Quick introduction to Visitor Design pattern; Elements SPI; Implementing Elements SPI; Uses of Elements SPI; Extensions SPI; Exploring a custom extension, guice-multibinder. … (more)
- Publisher Details:
- Place of publication not identified : Packt Publishing
- Publication Date:
- 2013
- Extent:
- 1 online resource
- Subjects:
- 005.133
COMPUTERS -- Programming -- Open Source
Java (Computer program language)
Application software -- Development
Computer science
Java (Computer program language)
Application software -- Development
Computer science
Application software -- Development
Computer science
Java (Computer program language)
Java (Computer program language)
Application software / Development
Computer science
COMPUTERS -- Web -- General
Electronic books - Languages:
- English
- ISBNs:
- 1299926355
9781299926356
1783281898
9781783281893
9781783281909
1783281901 - Related ISBNs:
- 9781783281893
- Notes:
- Note: Print version record.
- Access Rights:
- Legal Deposit; Only available on premises controlled by the deposit library and to one user at any one time; The Legal Deposit Libraries (Non-Print Works) Regulations (UK).
- Access Usage:
- Restricted: Printing from this resource is governed by The Legal Deposit Libraries (Non-Print Works) Regulations (UK) and UK copyright law currently in force.
- View Content:
- Available online (eLD content is only available in our Reading Rooms) ↗
- Physical Locations:
- British Library HMNTS - ELD.DS.87373
- Ingest File:
- 01_096.xml