Closed
Description
Alexander Zobkov opened SPR-14585 and commented
Groovy (since 1.8) supports customizing compilation process. For example:
- adding various types of imports to the compilation unit:http://docs.groovy-lang.org/latest/html/api/org/codehaus/groovy/control/customizers/ImportCustomizer.html,
- applying AST transformations without specifing them in sources:
http://docs.groovy-lang.org/latest/html/gapi/org/codehaus/groovy/control/customizers/ASTTransformationCustomizer.html
Adding support for this feature allows to increase expressiveness of source files for groovy beans by hiding "noise" of explicit imports and AST annotations. With usage of DSL and groovy syntax sugar, source files for groovy beans can look like plain text in english that can be used and understandable for non programmers.
I tried to enable Import customizer with existing Spring API but failed to to do so, see attachment for code snippet.
Affects: 4.3 GA
Attachments:
- 1.txt (1.77 kB)
Issue Links:
- ScriptFactory for JSR-223 [SPR-5215] #9888 ScriptFactory for JSR-223
- ScriptExecutor for JSR-223 [SPR-11007] #15635 ScriptExecutor for JSR-223
Referenced from: commits da56758, 53819c4, fbeff47, 433764d, 6a0d9d3