وبلاگ بلیان

Play framework cookbook : over 60 incredibly effective recipes to take you under the hood and leverage advanced concepts of the Play framework

معرفی کتاب «Play framework cookbook : over 60 incredibly effective recipes to take you under the hood and leverage advanced concepts of the Play framework» نوشتهٔ Alexander Reelsen، منتشرشده توسط نشر Packt Publishing Limited در سال 2011. این کتاب در 5 صفحه، فرمت pdf، زبان انگلیسی ارائه شده است.

This book is in Packt’s Cookbook series. A Packt Cookbook contains recipes for solutions to the most important problems you face when working with a topic. Inside the Cookbook you will find: A straightforward and easy to follow format, A selection of the most important tasks and problems, Carefully organized instructions for solving the problem efficiently, Clear explanations of what you did, Details for applying the solution to other situations. This is the ideal book for people who have already written a first application with the Play Framework or have just finished reading through the documenation. In other words - anyone who is ready to get to grips with Play! Having a basic knowledge of Java is good, as well as well as some web developer skills – HTML and JavaScript Cover......Page 1 Copyright......Page 3 Credits......Page 4 Foreword......Page 6 About the Author......Page 9 About the Reviewers......Page 10 www.PacktPub.com......Page 12 Table of Contents......Page 14 Preface......Page 18 Introduction......Page 22 Downloading and installing the Play framework......Page 23 Creating a new application......Page 24 Defining routes as the entry point to your application......Page 25 Configuring your application via application.conf......Page 28 Defining your own controllers......Page 29 Defining your own models......Page 32 Using fixtures to provide initial data......Page 35 Defining your own views......Page 37 Writing your own tags......Page 39 Using Java Extensions to format data in your views......Page 41 Adding modules to extend your application......Page 45 Using Oracle or other databases with Play......Page 48 Understanding suspendable requests......Page 49 Understanding session management......Page 52 Introduction......Page 56 URL routing using annotation-based configuration......Page 57 Basics of caching......Page 60 Using HTTP digest authentication......Page 67 Generating PDFs in your controllers......Page 72 Binding objects using custom binders......Page 77 Validating objects using annotations......Page 80 Adding annotation-based right checks to your controller......Page 82 Rendering JSON output......Page 87 Writing your own renderRSS method as controller output......Page 91 Introduction......Page 100 Dependency injection with Spring......Page 101 Dependency injection with Guice......Page 104 Using the security module......Page 106 Adding security to the CRUD module......Page 110 Using the MongoDB module......Page 112 Using MongoDB/GridFS to deliver files......Page 116 Introduction......Page 122 Using Google Chart API as a tag......Page 124 Including a Twitter search in your application......Page 131 Managing different output formats......Page 136 Binding JSON and XML to objects......Page 140 Introduction......Page 148 Creating and using your own module......Page 149 Building a flexible registration module......Page 154 Understanding events......Page 163 Managing module dependencies......Page 164 Using the same model for different applications......Page 167 Understanding bytecode enhancement......Page 169 Adding private module repositories......Page 175 Preprocessing content by integrating stylus......Page 177 Integrating Dojo by adding command line options......Page 181 Adding annotations via bytecode enhancement......Page 188 Implementing your own persistence layer......Page 192 Integrating with messaging queues......Page 204 Using Solr for indexing......Page 212 Writing your own cache implementation......Page 223 Introduction......Page 230 Test automation with Jenkins......Page 231 Test automation with Calimoucho......Page 238 Creating a distributed configuration service......Page 242 Running jobs in a distributed environment......Page 248 Running one play instance for several hosts......Page 251 Forcing SSL for chosen controllers......Page 252 Implementing own monitoring points......Page 254 Configuring log4j for log rotation......Page 256 Integrating with Icinga......Page 258 Integrating with Munin......Page 260 Setting up the Apache web server with Play......Page 265 Setting up the Nginx web server with Play......Page 268 Setting up the Lighttpd web server with Play......Page 270 Multi-node deployment introduction......Page 272 Further information......Page 276 Index......Page 280

In Detail

The Play framework is the new kid on the block of Java frameworks. By breaking with existing standards the play framework tries not to abstract away from HTTP as most web frameworks do, but tightly integrates with it. This means quite a shift for Java programmers. Understanding these concepts behind the play framework and its impact on web development with Java are crucial for fast development of applications.

The Play Framework Cookbook starts where the beginner documentation ends. It shows you how to utilize advanced features of the Play framework - piece by piece and completely outlined with working applications!

The reader will be taken through all layers of the Play Framework and provided with in-depth knowledge from as many examples and applications as possible. Leveraging the most from the Play framework means to think simple again in a java environment. Implement your own renderers, integrate tightly with HTTP, use existing code, improve site performance with caching and integrate with other web services and interfaces. Learn about non-functional issues like modularity or integration into production and testing environments. In order to provide the best learning experience during reading Play Framework Cookbook, almost every example is provided with source code, so you can start immediately to integrate recipes into your own play applications.

Approach

This book is in Packt's Cookbook series. A Packt Cookbook contains recipes for solutions to the most important problems you face when working with a topic.

Inside the Cookbook you will find:

  • A straightforward and easy to follow format
  • A selection of the most important tasks and problems
  • Carefully organized instructions for solving the problem efficiently
  • Clear explanations of what you did
  • Details for applying the solution to other situations

Who this book is for

This is the ideal book for people who have already written a first application with the Play Framework or have just finished reading through the documenation. In other words - anyone who is ready to get to grips with Play! Having a basic knowledge of Java is good, as well as well as some web developer skills - HTML and JavaScript

Intro -- Play Framework Cookbook -- Table of Contents -- Play Framework Cookbook -- Credits -- Foreword -- Why Play is a small revolution in the Java world -- Prerequisites -- What is missing: A Scala chapter -- About the Author -- About the Reviewers -- www.PacktPub.com -- Support files, eBooks, discount offers and more -- Why Subscribe? -- Preface -- What this book covers -- What you need for this book -- Who this book is for -- Conventions -- Reader feedback -- Customer support -- Downloading the example code -- Errata -- Piracy -- Questions -- 1. Basics of the Play Framework -- Introduction -- Downloading and installing the Play framework -- Getting ready -- How to do it... -- How it works... -- Creating a new application -- How to do it... -- How it works... -- There's more... -- Support for various IDEs -- Defining routes as the entry point to your application -- Getting ready -- How to do it... -- How it works... -- There's more... -- See also -- Configuring your application via application.conf -- How to do it... -- How it works... -- See also -- Defining your own controllers -- Getting ready -- How to do it... -- How it works... -- There's more... -- Using POJOs for HTTP mapping -- Using HTTP redirects -- Thread safety -- See also -- Defining your own models -- Getting ready -- How to do it... -- How it works... -- There's more... -- Using finders -- Never be anemic -- Learning from the existing examples -- Regarding JPA and transactions -- See also -- Using fixtures to provide initial data -- How to do it... -- How it works... -- There's more... -- Using a bootstrap job to load seed data -- More information about YAML -- Using lists in YAML -- Defining your own views -- How to do it... -- How it works... -- There's more... -- Check out more possible template tags -- Check out more predefined variables -- Supporting multiple formats Annotation The Play framework is the new kid on the block of Java frameworks. By breaking with existing standards the play framework tries not to abstract away from HTTP as most web frameworks do, but tightly integrates with it. This means quite a shift for Java programmers. Understanding these concepts behind the play framework and its impact on web development with Java are crucial for fast development of applications. The Play Framework Cookbook starts where the beginner documentation ends. It shows you how to utilize advanced features of the Play framework piece by piece and completely outlined with working applications!The reader will be taken through all layers of the Play Framework and provided with in-depth knowledge from as many examples and applications as possible. Leveraging the most from the Play framework means to think simple again in a java environment. Implement your own renderers, integrate tightly with HTTP, use existing code, improve site performance with caching and integrate with other web services and interfaces. Learn about non-functional issues like modularity or integration into production and testing environments. In order to provide the best learning experience during reading Play Framework Cookbook, almost every example is provided with source code, so you can start immediately to integrate recipes into your own play applications This is a practical hands-on book with clear instructions and lot of code examples. It takes a simple approach, guiding you through different architectural topics using realistic sample projects. A single project is implemented using different architectural styles to make the reader understand the details of each style. There are also many small independent code samples to explain design patterns, WCF, and localization. This book is for people familiar with the ASP.NET framework using either C# or VB.NET. You don't need to be an ASP.NET guru – the book is ideal for novice and intermediate developers. If reading about application architecture usually confuses you or sends you to sleep, then this book will be perfect for you! In short, any ASP.NET programmer who is confused or disoriented reading different books or materials on architectures wondering how and what to implement in their application, will definitely benefit from this book! Over 60 incredibly effective recipes to take you under the hood and leverage advanced concepts of the Play framework
دانلود کتاب Play framework cookbook : over 60 incredibly effective recipes to take you under the hood and leverage advanced concepts of the Play framework