Code Groovy

Code Groovy

Small Gem: @Delegate annotation

Sep 30, 20211 min read

While looking through some source code of the open source library groovy-wslite, I came across an annotation I had not seen before - @Delegate. This annotation adds all public instance methods of the annotated field to the present class. In the ...