Welcome to JavaPolis 2007!
Groovy Update
Overall Presentation Goal
Guillaume Laforge
Dierk König
Agenda
What's Groovy?
Groovy - feature rich and Java friendly
Being Java friendly
Being feature rich
Lots of integrations
Used in Mission-Critical applications
Books already out... more coming...
JAX 2007 Innovation Award
Syntax Basics
Properties Support
Literals for lists, maps, ranges, regex, strings
Closures
Groovy APIs
Groovy Development Kit
Closures
Groovy Development Kit
XML Parsing and GPath Navigation
SQL support
SwingBuilder
SwingBuilder
Automating Office Applications
Domain-Specific Languages
Why Create a Domain-Specific Language?
Putting it all together
Builder pattern at the syntax level
What's new in 1.5?
What's New?
Java 5 Features
Annotations Example
Enums example with a Groovy switch
New dynamic features
Have a look at the IntelliJ IDEA plugin!
Integrating Groovy in your Applications
Why Integrating Groovy in your Apps?
Several Integration Mechanisms
JSR-223 - javax.script.* from JDK 6
GroovyShell
GroovyClassLoader
Spring 2.x Groovy integration
Let's Wrap Up
Summary
Resources
Groovy is an agile and dynamic language for the Java Virtual Machine. Builds upon the strengths of Java but has additional power features inspired by languages like Python, Ruby and Smalltalk. Makes modern programming features available to Java developers with almost-zero learning curve
supports Domain Specific Languages and other compact syntax so your code becomes easy to read and maintain
makes writing shell and build scripts easy with its powerful processing primitives, OO abilities and an Ant DSL
increases developer productivity by reducing scaffolding code when developing web, GUI, database or console applications
simplifies testing by supporting unit testing and mocking out-of-the-box
seamlessly integrates with all existing Java objects and libraries
compiles straight to Java bytecode so you can use it anywhere you can use Java
As the official Groovy Project Manager and Spec Lead of JSR-241, standardizing the Groovy dynamic language, Guillaume LaForge spends his spare time bringing a versatile and agile environment to the masses and intiated the seed of Grails, the Groovy and Spring framework. He has co-authored Manning's successful Groovy in Action along with Dierk Koenig, one of the passionate Groovy developers.
In his profesionnal life, Guillaume Laforge is the Vice-President of Technology at G2One, the company sustaining and leading the development of Groovy and Grails.