Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Groovy is ...

Section
Column


An agile dynamic language for the Java Platform with many features that are inspired by languages like Python, Ruby and Smalltalk, making them available to Java developers using a Java-like syntax.

Developing web applications , writing shell scripts easily, writing concise, meaningful, test cases using Groovy's JUnit integration, or prototyping and producing real industrial strength applications have never been so concise and groovy.

Groovy works cleanly with all existing Java objects and libraries and compiles straight to Java bytecode in either application development or scripting mode.

Column
Code Block
none
none
// The Greeter class
class Greeter {
  def name
  Greeter(who) {
    name = who[0].toUpperCase()
            + who.substring(1)
  }
  def salute() {
    println "Hello ${name}!"
  }
}

// Create a new object
g = new Greeter('world')

// Output "Hello World!"
g.salute()

Getting Started

Documentation

Groovy provides powerful additional :

Modules

  • Gant : a build tool for scripting Ant tasks using Groovy scripts, no XML.
  • Grails : Groovy-based web framework inspired by Ruby on Rails
  • Gram : a simple xdoclet-like tool for processing doclet tags or Java 5 annotations
  • COM Scripting
  • GroovySWT : wrapper around SWT , the eclipse graphical library
  • Wiki Markup
    {link:GroovySOAP|http://docs.codehaus.org/display/GROOVY/Groovy+SOAP}{link}
    : accessing through groovy web services
  • GSP : Groovy server pages
  • GSQL : accessing databases through Groovy
  • Process : handling external processes
  • XML-RPC : RPC over HTTP really easily
  • Jabber-RPC: RPC over Jabber based instant messaging systems (including Google Talk)
  • Wiki Markup
    {link:GoogleDataSupport|http://docs.codehaus.org/display/GROOVY/Google+Data+Support}{link}
    : Use the Google Data APIs easily from within Groovy
  • GORM : Grails Object-Relational Mapping
  • Groovy Monkey: Eclipse Monkey port to Groovy with some enhancements.

Enjoy making your code groovier !!!!

Latest news

Blog Posts
2
2

Groovy-related news in the blogosphere

RSS Feed
urlhttp://blogsearch.google.fr/blogsearch_feeds?hl=fr&filter=0&q=groovy+AND+(codehaus+OR+language+OR+script+OR+scripting+OR+jython+OR+jruby+OR+beanshell)+AND+(dynamic+OR+grails+OR+builder+OR+DSL+OR+java+OR+static+OR+JSR+OR+241+OR+ruby+OR+rails)&lr=&as_drrb=q&as_qdr=m&ie=utf-8&num=10&output=rss
titleBarfalse