Subscribe to The Way I See It        RSS Feed
- - - - -

Groovy StreamingMarkupBuilder Empty Tags

Icon Leave Comment
I found something interesting today at work while playing with Groovy. By default, the StreamingMarkupBuilder builds empty tags like this:

<someTag />

but an external system that uses our API needs the tags to be expanded like this:

- - - - -

Groovy Strings

Icon Leave Comment
I'm back again to write about Strings in Groovy. If you are like me, then you use strings for all sorts of things. Groovy has some nice features that make it a pleasure.


In Groovy, you can declare strings with single or double quotes. Double quotes denote GStrings--strings that allow exp...
- - - - -

Excluding Groovy Methods in AspectJ Advice

Icon Leave Comment
Groovy is great for developers because of its simple scripting feel, but in order to compile to java bytecode, it adds lots of bloat at compile time to make the magic work. When mixing it with AspectJ's post-compile binary weaving, it will cause lots of unwanted methods to be caught by your AspectJ Advice. I wrote a pointcut to help eliminate...
- - - - -

Collecting attributes from a Collection of Objects

Icon Leave Comment
Groovy provides us with a slick way to iterate over objects in a collection to collet specific attributes. This is called the Spread operator ("*.")

For example:

class Person{     String name;     int age;}

Say we have a collection of people:

* * * * *

Totally Groovy

Icon Leave Comment
- - - - -

Conclusiong to Internship

Icon Leave Comment
First of all, I want to say that I'm back and I am going to keep up with D.I.C more than I have in the last year. I have followed peoples posts but remained pretty much incognito.

This summer I had the opportunity to go work for Verizon Wireless in Alpharetta, Ga. Talk about an amazing opportunity! I wanted to share a little bit about...

Page 1 of 1

October 2021

2425 26 27282930

Recent Entries

Recent Comments

Search My Blog

0 user(s) viewing

0 Guests
0 member(s)
0 anonymous member(s)