How to specify String[] in @ClosureParams

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

How to specify String[] in @ClosureParams

K Adithyan (tech)
Team,

One of my closure should work on only one String[] argument, so that people can work as below.. How should I configure in @ClosureParams annotation.

eachRow { row ->

context.portinfo[row[0]] = row[1]
}


I am able to properly configure @ClosureParams for List, Map or Other objects. I know that even without that @ClosureParams annotation, the code will work in the runtime...! But, still I want to do it

Pls advice