Been playing around with React recently in preparation for a new application. I wanted verification that object state was being manipulated when I hooked up onChange events to my form. I'd been using console logs, but I realized I should be able to easily...
Home » Archives for 2016
Groovy Method Tracer Transformer
in
Groovy
- on 9:37 AM
- No comments
In general I don't find trace logs for entering and exiting a method to be very useful, but occasionally I work with teams that do. There are great options using Spring or AspectJ, but I was in a Groovy project that didn't have either readily...
Parallel Processing of Directories/Files
in
Groovy
- on 11:32 AM
- No comments
I've been working with a rules engine product recently that stores all of it's instructions in XML files. To support their rating algorithms, my company now has over 11,000 XML files stored in over 800 directories. These files can relate to one another...
Spring Controller With Groovy HTML Generation
in
Groovy,
Spring
- on 4:21 PM
- No comments
I was working on a small Java POC and wanted to be able to quickly generate some HTML, so I decided to try Groovy's MarkupBuilder. In theory it meant that I had a single file that handle the entire view, instead of shipping the rendering work off...
CICS Web Converse
in
CICS,
Spring
- on 11:25 AM
- No comments
I work in a shop that has a lot of CICS assets, and as our systems evolve the CICS applications need to connect to systems that reside elsewhere, often exposed via HTTP. Many of these new services are being exposed via REST.
In the past we've connected...
Extension to MarkupBuilder to Support Dot-Notation
in
Groovy
- on 10:32 AM
- No comments
I'm working with a system that accepts XML as input to it's services, and there are times that the XML I need to generate is several layers deep, like so.
<session id="$sessionId">
<data>
<policy>
<line>
...
Populating a Holiday Table
in
Groovy
- on 1:39 PM
- No comments
Our company has a Java service which determines if a date is a holiday, but we were working on some reports that needed that data in a database. So the following groovy script was used to populate a holiday table for the holidays for the remainder of...