Book description
Dig deeper into Grails architecture and discover how this application framework works its magic. Written by a core developer on the Grails team, this practical guide takes you behind the curtain to reveal the inner workings of its 2.0 feature set. You’ll learn best practices for building and deploying Grails applications, including performance, security, scaling, tuning, debugging, and monitoring.
Understand how Grails integrates with Groovy, Spring, Hibernate, and other JVM technologies, and learn how to create and use plugins to augment your application’s functionality. Once you know how Grails adds behavior by convention, you can solve problems more easily and develop applications more intuitively.
- Write simpler, more powerful code with the Groovy language
- Manage persistence in Grails, using Hibernate or a NoSQL datastore
- Learn how Grails uses Spring’s functionality and optional modules
- Discover how Hibernate handles details for storing and retrieving data
- Integrate technologies for messaging, mail, creating web services, and other JEE technologies
- Bypass convention and configure Grails manually
- Learn a general approach to upgrading applications and plugins
- Use Grails to develop and deploy IaaS and PaaS applications
Publisher resources
Table of contents
- Programming Grails
- Preface
-
1. Introduction to Groovy
- Installing Groovy
- Optional Typing
- Collections and Maps
- Properties
- Closures
- Groovy’s Contributions in the War Against Verbosity
- Differences Between Java and Groovy
- Groovy Strings
- Static this
- The Groovy JDK (GDK)
- Metaprogramming and the MOP
- Adding Methods
- Operators
- Overload Your Operators
- def Considered Harmful
- Closures Versus Methods
- TypeChecked, CompileStatic, and invokedynamic
-
2. Grails Internals
- Installing Grails
- The Grails Command Line
- IDE Support
-
Plugins
- Optional Plugins
-
Core Plugins
- The codecs plugin
- The controllers plugin
- The converters plugin
- The core plugin
- The dataSource plugin
- The domainClass plugin
- The filters plugin
- The groovyPages plugin
- The i18n plugin
- The logging plugin
- The mimeTypes plugin
- The scaffolding plugin
- The services plugin
- The servlets plugin
- The urlMappings plugin
- The validation plugin
- Conventions
- More Information
- 3. Persistence
- 4. Spring
-
5. Hibernate
- Mapping Domain Classes
- Dialects
- Hibernate Without GORM
- The Session
- Open Session in View
- Custom User Types
- Optimistic and Pessimistic Locking
- Accessing the Session’s Connection
- schema-export
- SQL Logging
- Proxies
- Caching
- HQL
- Collections Performance
- Session.createFilter()
- Custom Configurations
- Mapping Views and Subselect Classes
- get(), load(), and read()
- Performance
- 6. Integration
- 7. Configuration
- 8. Plugins
-
9. Security
-
OWASP
- A1: Injection
- A2: Cross-Site Scripting (XSS)
- A3: Broken Authentication and Session Management
- A4: Insecure Direct Object References
- A5: Cross-Site Request Forgery
- A6: Security Misconfiguration
- A7: Insecure Cryptographic Storage
- A8: Failure to Restrict URL Access
- A9: Insufficient Transport Layer Protection
- A10: Unvalidated Redirects and Forwards
- Security Plugins
- Other Plugins and Libraries
- General Best Practices
-
OWASP
- 10. The Cloud
- 11. AOP
- 12. Upgrading Applications and Plugins
- Index
- About the Author
- Colophon
- Copyright
Product information
- Title: Programming Grails
- Author(s):
- Release date: April 2013
- Publisher(s): O'Reilly Media, Inc.
- ISBN: 9781449324537
You might also like
book
Grails in Action, Second Edition
Grails in Action, Second Edition is a comprehensive introduction to Grails 2 focused on making you …
book
The Definitive Guide to Grails 2
Grails is a full stack framework which aims to greatly simplify the task of building serious …
video
Starting a Grails 3 Project
In this video course, expert Java trainer and consultant Ken Kousen shows you how to build …
video
Advanced Databases and REST Principles in Grails 3
In this video course, expert Java trainer and consultant Ken Kousen explores advanced database features that …