Você está na página 1de 2

Groovy in Action SECOND

EDITION
ABOUT THE BOOK
Groovy in Action, Second Edition is the undisputed
definitive reference on the Groovy language. Written
by core members of the Groovy language team, this
book presents Groovy like no other canfrom the
inside out. With relevant examples, careful
explanations of Groovy's key concepts and features,
and insightful coverage of how to use Groovy in
production tasks, including building new applications,
integration with existing code, and DSL development,
this is the only book you'll need. Updated for Groovy
2.4.

Whats Inside

` 899 /-

Comprehensive coverage of Groovy 2.4


including language features, libraries, and AST
transformations

Dynamic, static, and extensible typing

Concurrency: actors, data parallelism, and


data flow

Applying Groovy: Java integration, XML, SQL,


testing, and domainspecific language support

Hundreds of reusable examples

ISBN: 9789351198260 Pages: 912


Authors: Dierk Knig and Paul King with Guillaume Laforge, Hamlet D'Arcy, Cdric Champeau,
Erik Pragt, and Jon Skeet

SUMMARY
In the last ten years, Groovy has become an integral part of a Java developer's toolbox. Its comfortable, common
sense design, seamless integration with Java, and rich ecosystem that includes the Grails web framework, the
Gradle build system, and Spock testing platform have created a large Groovy community.

ABOUT THE AUTHORS


Authors Dierk Knig, Paul King, Guillaume Laforge, Hamlet D'Arcy, Cdric Champeau, Erik
Pragt, and Jon Skeet are intimately involved in the creation and ongoing development of
the Groovy language and its ecosystem.
/dtechpress

/dtechpress

/dreamtechpress

dreamtechpress.wordpress.com

TABLE OF CONTENTS
Part 1: The Groovy language
Chapter 1: Your way to Groovy
The Groovy story
What Groovy can do for you
Running Groovy
Compiling and running Groovy
Groovy IDE and editor support
Summary
Chapter 2: Overture: Groovy basics
General code appearance
Probing the language with assertions
Groovy at a glance
Groovy's place in the Java environment
Summary
Chapter 3: Simple Groovy datatypes
Objects, objects everywhere
The concept of optional typing
Overriding operators
Working with strings
Working with regular expressions
Working with numbers
Summary
Chapter 4: Collective Groovy Data types
Working with ranges
Working with lists
Working with maps
Notes on Groovy collections
Summary
Chapter 5: Working with closures
A gentle introduction to closures
The case for closures
Declaring closures
Using closures
Understanding closure scope
Returning from closures
Support for design patterns
Summary
Chapter 6: Groovy control structures
Groovy truth
Conditional execution structures
Looping
Exiting blocks and methods
Summary
Chapter 7: Object orientation, Groovy style
Defining classes and scripts
Organizing classes and scripts
Advanced objectoriented features
Working with GroovyBeans
Using advanced syntax features
Summary
Chapter 8: Dynamic programming with Groovy
What is dynamic programming?
Meta Object Protocol
Customizing the MOP with hook methods
Modifying behavior through the metaclass
Realworld dynamic programming in action
Summary

Published by:

Chapter 9: Compiletime metaprogramming and AST


transformations
A brief history
Making Groovy cleaner and leaner
Exploring AST
AST by example: creating ASTs
AST by example: local transformations
AST by example: global transformations
Testing AST transformations
Limitations
Next steps
Summary
Chapter 10: Groovy as a static language
Motivation for optional static typing
Using @TypeChecked
Flow typing
Static compilation
Static type checking extensions
Summary
Part 2: Around the Groovy library
Chapter 11: Working with builders
Learning by example: Using a builder
Building object trees with NodeBuilder
Working with MarkupBuilder
Working with StreamingMarkupBuilder
Task automation with AntBuilder
Easy GUIs with SwingBuilder
Modern UIs with GroovyFX SceneGraphBuilder
Creating your own builder
Summary
Chapter 12: Working with the GDK
Working with objects
Working with files and I/O
Working with threads and processes
Working with templates
Working with Groovlets
Summary
Chapter 13: Database programming with Groovy
Groovy SQL: a better JDBC
Advanced Groovy SQL
DataSets for SQL without SQL
Organizing database work
Groovy and NoSQL
Other approaches
Summary
Chapter 14: Working with XML and JSON
Reading XML documents
Processing XML
Parsing and building JSON
Summary
Chapter 15: Interacting with Web Services
An overview of Web Services
Reading RSS and ATOM
Using a RESTbased API
Using XMLRPC
Applying SOAP
Summary

DREAMTECH PRESS
19-A, Ansari Road, Daryaganj
New Delhi-110 002, INDIA
Tel: +91-11-2324 3463-73, Fax: +91-11-2324 3078
Email: feedback@dreamtechpress.com
Website: www.dreamtechpress.com

Chapter 16: Integrating Groovy


Prelude to integration
Evaluating expressions and scripts with
GroovyShell
Using the Groovy script engine
Working with the GroovyClassLoader
Spring integration
Riding Mustang and JSR223
Mastering CompilerConfiguration
Choosing an integration mechanism
Summary
Part 3: Applied Groovy
Chapter 17: Unit testing with Groovy
Getting started
Unit testing Groovy code
Unit testing Java code
Organizing your tests
Advanced testing techniques
IDE integration
Testing with the Spock framework
Build automation
Summary
Chapter 18: Concurrent Groovy with GPars
Concurrency for the rest of us
Concurrent collection processing
Becoming more efficient with map/filter/reduce
Dataflow for implicit task coordination
Actors for explicit task coordination
Agents for delegated task coordination
Concurrency in action
Summary
Chapter 19: Domainspecific languages
Groovy's flexible nature
Variables, constants, and method injection
Adding properties to numbers
Leveraging named arguments
Command chains
Defining your own control structures
Context switching with closures
Another technique for builders
Securing your DSLs
Testing and error reporting
Summary
Chapter 20: The Groovy ecosystem
Groovy Grapes for selfcontained scripts
Scriptom for Windows automation
GroovyServ for quick startup
Gradle for project automation
CodeNarc for static code analysis
GContracts for improved design
Grails for web development
Griffon for desktop applications
Gaelyk for Groovy in the cloud
Summary

Books are available on:

WILEY INDIA PVT. LTD.


4435-36/7, Ansari Road, Daryaganj
New Delhi-110 002, INDIA
Tel: +91-11-4363 0000, Fax: +91-11-2327 5895
Email: csupport@wiley.com
Website: www.wileyindia.com

Distributed by:

Regional Offices: Bangalore: Tel: +91-80-2313 2383, Fax: +91-80-2312 4319, Email: blrsales@wiley.com
Mumbai: Tel: +91-22-2788 9263, 2788 9272, Telefax: +91-22-2788 9263, Email: mumsales@wiley.com
/dtechpress

/dtechpress

/dreamtechpress

dreamtechpress.wordpress.com

Você também pode gostar