Duration: 2 days
Course code: SS-JAV-301
Audience
- Developers
- Designers
- Architects
- Consultants
Prerequisites
Audience should be proficient in Java
Description
Groovy Training course is a fast paced introduction to Groovy. Groovy is a productive scripting language that runs on JVM and is compatible with Java libraries. It attracted attention of developers because of high productivity and reduced number of lines of code in comparison to Java. In this course you will quickly become productive with the leading dynamic language for the Java platform.
This is a hands on course: we spend about 70% of the course in labs and exercises.
Objectives
The overall goal is to rapidly become proficient in Groovy. Upon completion, the participants will be able to
- Understand the use of Groovy as a dynamic language
- Make practical use of productive Groovy features
- Work with GDK
- Work with XML, Databases, and UI libraries
- Understand and use the Meta-Object Protocol
- Test Groovy programs
Outline for Groovy Training Course
Introduction to Groovy
- What is Groovy?
- Groovy vs. Java
- First Steps
- Executing Groovy Programs
Groovy Syntax
- Definitions
- Similarities and Differences
Groovy Features
- Maps
- Exceptions
- Parameters
- Setters and Getters
- Interfaces and Implementations
- Operators and Overloading
- Generics
- Dynamic Typing
- Closures
Working with Collections and Strings
- GString
- Collections
- Using Closures
- Regular Expressions
GDK
- Object Extensions
- Processes
- java.io Extensions
- Various Helpful Classes
Working with XML
- Creating XML
- Consuming XML
- GPath and XMLSlurper
Working with Databases
- GSQL
Mixing Scripts and Classes
- Using Mixed Code
Meta-Object Protocol (MOP) and Method and Class Synthesis
- Metaprogramming
- Meta-Object Protocol (MOP)
- Synthesizing Methods
- Synthesizing Classes
- ExpandoMetaClass
Logging and Unit Testing with Groovy
- Logging
- Unit Testing
- Mock Techniques
Swing in Groovy
- SwingBuilder
- Widgets
- Layouts
Beyond Basics
- Grails: The Web Application Framework