home | career | drupal | java | mac | mysql | perl | scala | uml | unix

Groovy example source code file (Reflections.groovy)

This example Groovy source code file (Reflections.groovy) is included in the DevDaily.com "Java Source Code Warehouse" project. The intent of this project is to help you "Learn Java by Example" TM.

Java - Groovy tags/keywords

The Groovy Reflections.groovy source code

 * Echoes back whatever is thrown at it (with a <br> at end for browsers) ...
 * @author <a href="mailto:jeremy.rayner@gmail.com">Jeremy Rayner
 * invoke using
 *    groovy -l 80 Reflections.groovy
 *       (where 80 is the port to listen for requests upon)

// echo, echo, echo...
println "${line} <br>"

//assume no input means we've finished...
if (line == "") {
    // clean up gracefully, closing sockets etc
    return "success"

Other Groovy examples (source code examples)

Here is a short list of links related to this Groovy Reflections.groovy source code file:

new blog posts


Copyright 1998-2014 Alvin Alexander, alvinalexander.com
All Rights Reserved.