Have a Question? Call Us!
1.978.223.9023
info@eztrainings.com

Groovy Training: Introduction to Groovy for Java Developers

Posted by admin - 14/12/09 at 10:12 pm

Groovy Training Overview

Groovy is the leading open source dynamic language for the Java Virtual Machine that offers a flexible Java-like syntax that most Java developers can learn in matter of hours. Groovy provides features seen in other dynamic languages like Ruby, Python or Smalltalk. Groovy really shines in its ability to easily define internal Domain Specific Languages (DSLs) that can be used as an abstraction layer that enables non-technical subject matter experts to codify business rules. Accelebrate’s Groovy for Java™ Developers training teaches experienced Java developers how to write programs in Groovy that simplify, enhance, and expand their existing knowledge.

Groovy Training Prerequisites
All attendees should have a good knowledge of Java techniques, including the Collections framework and JDBC.
Software Needed on Each Student PC
Please contact us for specific setup instructions. In general, you will need:

  • A Java SE SDK 1.5.0 or later
  • The latest stable release of Groovy
  • A good integrated development environment that supports both languages, like Eclipse, TextMate, or UltraEdit
  • Other open source software; please contact us for details.

Groovy Training Objectives

  • Understand how dynamic languages differ from languages like Java or C#
  • Work with Groovy closures
  • Use Groovy control structures
  • Build object-oriented programs in Groovy
  • Use Groovy builders to reduce complexity
  • Access databases using Groovy
  • Process XML files in Groovy
  • Write unit tests in Groovy
  • Access Java classes from Groovy, and vice versa
  • Build a simple web application using Grails

Groovy Training Outline

  • Groovy Fundamentals
    • Differences between Groovy and Java
    • Compiling and executing Groovy programs
    • The basic Groovy data types and optional typing
    • Writing Groovy scripts
    • Declaring classes
    • Overriding operators and type coercion
    • GDK: the Groovy library
    • Groovy strings
    • Regular expressions in Groovy
  • Groovy Collections
    • Ranges
    • Lists
    • Maps
    • Iterators and polymorphic algorithms
  • Closures in Groovy
    • Declaring closures
    • Available options for calling closures
  • Groovy Control Structures
    • The “Groovy truth”
    • Conditional execution
    • Looping constructs
  • Using Classes and Scripts
    • Groovy fields and local variables
    • Methods and operations
    • Safe dereferencing with the ?. operator
    • Organizing classes in packages
    • Using inheritance
    • Working with GroovyBeans
    • Injecting methods with Categories
    • A bit about the Expando metaclass
  • Groovy Builders
    • NodeBuilder
    • MarkupBuilder
    • SwingBuilder
  • Survey of the GDK
    • Simplified File access
    • Templates
    • Groovlets
  • Database Access with Groovy
    • Basic database operations
    • DataSet operations
    • Groovy and ORM solutions
  • Working with XML
    • Reading and parsing XML documents
    • Using XPath expressions
    • Distributed processing with XML
  • Unit Testing in Groovy
    • GroovyTestCase
    • Unit-testing Groovy code
    • Unit-testing Java code
    • Code coverage and automation
  • Web Development with Grails
    • The Grails framework
    • Creating web applications using Grails
  • Conclusion
Bookmark and Share


Leave a Reply