Video description
Take your basic Groovy skills to the next level with this practical video workshop. Presenter and Java consultant Ken Kousen shows you how to work with XML and JSON, implement runtime metaprogramming, and use several AST transformations. You’ll also dive into operator overloading, Groovy SQL, and the Groovy JDK.
Once you complete this course, check out Ken’s other videos on the subject: Mastering Groovy and Groovy Fundamentals. These courses demonstrate the many advantages of adding Groovy to existing projects written in Java and other object-oriented languages.
- Create XML and JSON with builders, and parse them with XmlSlurper and JsonSlurper
- Mix Groovy and Java classes together to take advantage of what each does best
- Add properties and methods via runtime metaprogramming, and enhance existing classes from Java
- Work with AST transformations, including @Delegate, @Immutable, @Sortable, @Singleton, and @Builder
- Use Groovy JDK methods on collections, strings, and numbers
- Learn how operators in Groovy map to methods—and how to add those methods to existing classes in both Groovy and Java
- Access databases, apply CRUD operations, and call stored procedures with Groovy SQL
Ken Kousen, President of Kousen IT, Inc., is a technical trainer, mentor, and consultant in all areas related to Java, specializing in Android, Spring, Hibernate/JPA, Groovy, and Grails. He is the author of Making Java Groovy (Manning) and the upcoming O’Reilly book, Gradle for Android.
Publisher resources
Table of contents
-
Introduction and Review
- A Quick Groovy Review 00:24:05
- Java and Groovy Together
-
Parsing and Building
- Using XmlSlurper and JsonSlurper 00:14:14
- Builders 00:16:30
- Demo: Using Flickr's API to Display Pictures 00:15:02
- Demo: Open Weather 00:22:07
-
Runtime Metaprogramming
- The Metaclass/Adding Properties and Methods 00:07:08
- Categories 00:08:10
- Demo: Enhancing Existing Java Classes 00:12:37
- Demo: Extra Logging Levels 00:13:16
-
AST Transformations
- Introduction to AST Transforms 00:04:51
- @Delegate 00:08:30
- @Immutable 00:08:27
- @Singleton 00:03:32
- @Sortable 00:06:50
- @Builder, @TypeChecked, @Compile AST Transformations Wrap Up 00:13:00
-
Tour of the Groovy JDK
- Methods on Collections 00:09:16
- Methods on Strings and Numbers 00:14:12
- Combinations and Permutations 00:06:19
- File I/O 00:13:43
- Operator Overloading
-
Groovy SQL
- Accessing Databases 00:12:57
- CRUD Methods 00:14:28
- Calling Stored Procedures 00:13:16
Product information
- Title: Practical Groovy Programming
- Author(s):
- Release date: June 2015
- Publisher(s): O'Reilly Media, Inc.
- ISBN: 9781491930908
You might also like
video
Advanced Java Development
You’re a junior developer with a couple of years of Java under your belt and you’ve …
video
Algorithms: 24-part Lecture Series
Algorithms, Deluxe Edition, Fourth Edition These Algorithms Video Lectures cover the essential information that every serious …
video
Kubernetes Microservices
Microservices designs require you to change how you build and deploy applications. Instead of creating a …
video
Gradle Fundamentals
Learn how to implement Gradle, the Groovy-based build automation system that can help you build and …