Book Image

Learning Google Guice

By : Hussain Pithawala
Book Image

Learning Google Guice

By: Hussain Pithawala

Overview of this book

<p>Google Guice is an open source software framework for the Java platform released by Google under the Apache License. It provides support for dependency injection using annotations to configure Java objects.</p> <p>Learning Google Guice is a concise, hands-on book that covers the various areas of dependency injection using the features provided by the latest version of Google Guice. It focuses on core functionalities as well as the various extensions surrounding Guice that make it useful in other areas like web development, integration with frameworks for web development, and persistence.</p> <p>Learning Google Guice covers Guice extensions which avoid complex API usage. You will start by developing a trivial application and managing dependencies using Guice. As the book gradually progresses, you will continue adding complexity to the application while simultaneously learning how to use Guice features such as the Injector, Provider, Bindings, Scopes, and so on. Finally, you will retrofit the application for the Web, using Guice not only to manage dependencies, but also to solve configuration related problems.</p>
Table of Contents (17 chapters)
Learning Google Guice
Credits
About the Author
Acknowledgments
About the Reviewers
www.PacktPub.com
Preface
Index

Installing Apache Tomcat


Though Apache Tomcat could be installed via package managers and installers available; we would follow a platform-independent approach, which gives the user more freedom to configure and administer it. Apache Tomcat requires the JDK installed on your system to work. Download the latest version .zip or .tar.gz version from http://tomcat.apache.org/download-70.cgi, and extract at a convenient location. Browse into the directory, and you will find various subdirectories. Here is a short description for these:

  • bin: Location for the binary executables

  • conf: Location for the configuration files

  • lib: Location for the external libraries

  • logs: Default location for the log files

  • temp: Default location for the temporary files

  • webapps: Location for web application or .war files deployment

  • work: Contains generated application-specific servlet files for various JSPs

Tomcat is ready to use after this installation. The packaged .war files (present as code samples from Chapter 4 to Chapter 8) could be deployed here.