Home » groovy

Tag Archives: groovy

Introduction to Groovy Language

1.Introduction This is an in-depth article on Groovy language. The examples presented are developed using Groovy. Groovy is an opensource framework for developing and prototyping applications. It is based on java language. 2. Groovy Language Introduction 2.1 Prerequisites Java 8 is required on the Linux, windows, or Mac operating systems. Groovy version 2.5.7 is used for this article. 2.2 Download ...

Read More »

Groovy Collections Example

1. Introduction Apache Groovy (Groovy) is an object-oriented dynamic programming language for the Java platform. It is dynamically compiled to the Java Virtual Machine (JVM) bytecode, and inter-operates with other Java source codes and libraries. Groovy is written in Java and was first released in 2007. Groovy provides native support for various collection types, including lists, sets, maps, and ranges. Most of these are based on ...

Read More »

Groovy SQL Example

1. Groovy SQL – Introduction Apache Groovy (Groovy) is an object-oriented dynamic programming language for the Java platform. It is dynamically compiled to the Java Virtual Machine (JVM) bytecode, and inter-operates with other Java source codes and libraries. Groovy is written in Java and was first released in 2007. Groovy SQL module provides a higher-level abstraction on JDBC technology. The Groovy SQL API ...

Read More »

Spring Framework Groovy Tutorial

In this article, we will explain Spring Framework using Groovy. Spring is a Java application framework that provides many useful services for building applications. It has supported Apache Groovy fully since version 4. In this tutorial, we will build a Spring boot application in Groovy. Table Of Contents 1. Introduction 2. Technologies Used 3. Spring-boot Application 3.1. Groovy Dependency 3.2 ...

Read More »

Grails on Groovy Tutorial

Grails is a web development framework integrated with JVM that lets developers to develop applications by using built-in features like integrated ORM, DSL (Domain Specific Languages), runtime and compile time meta programming, and concurrent programming. In this tutorial, I will show you how to develop Grails application step by step with extra theoretical informations about Grails. Table Of Contents 1. ...

Read More »

Groovy Closure Example

In this example I’ll explain closures in Groovy. According to Sabesta’s nice book Concepts of Programming Languages, defining a closure is a simple matter: “a closure is a subprogram and the referencing environment where it was defined.” But explaining it is not that simple. Sabesta explains the closure as a subprogram that can be assigned to a variable or passed to ...

Read More »

Groovy Regex Example

In this example I will show you how to use regular expressions in Groovy. 1. Groovy and Regular Expressions Groovy is one of the most commonly used JVM languages and regular expressions (or simply regex) as a powerful technique to search and manipulate texts have been around us for more than a half century. As most of the languages Java ...

Read More »