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
- 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: May 2013
- Publisher(s): O'Reilly Media, Inc.
- ISBN: 9781449323936
You might also like
book
Software Engineering at Google
Today, software engineers need to know not only how to program effectively but also how to …
book
Head First Design Patterns, 2nd Edition
You know you don’t want to reinvent the wheel, so you look to design patterns—the lessons …
book
97 Things Every Java Programmer Should Know
If you want to push your Java skills to the next level, this book provides expert …
book
Java in a Nutshell, 7th Edition
This updated edition of Java in a Nutshell not only helps experienced Java programmers get the …