Re: Configuring Extension Module using Custom Annotation

2019-06-20 Thread Jochen Theodorou
On 20.06.19 20:13, adithyank wrote: So far we have only Java Extension classes. With AST Transformation, can we register Extension classes with Groovy Runtime?? is it what you are saying? The AST Transformation can write to the extension module file, which the runtime uses to register the exte

Re: Configuring Extension Module using Custom Annotation

2019-06-20 Thread adithyank
So far we have only Java Extension classes. With AST Transformation, can we register Extension classes with Groovy Runtime?? is it what you are saying? - Thanks, Adithyan K India -- Sent from: http://groovy.329449.n5.nabble.com/Groovy-Dev-f372993.html

Re: Configuring Extension Module using Custom Annotation

2019-06-20 Thread Milles, Eric (TR Tech, Content & Ops)
, then a Java APT extension could be created without Groovy involvement. From: adithyank Sent: Thursday, June 20, 2019 2:05 AM To: d...@groovy.incubator.apache.org Subject: Re: Configuring Extension Module using Custom Annotation Hi Eric, 1. The idea of

Re: Configuring Extension Module using Custom Annotation

2019-06-20 Thread adithyank
By having a annotation processor, we can update the org.codehaus.groovy.runtime.ExtensionModule file with required entries during compilation time... Having said that I will be happy if we have some arrangement like this... 1. We will have below directories in classpath a. META-INF/groovy/ex

Re: Configuring Extension Module using Custom Annotation

2019-06-20 Thread adithyank
Hi Eric, 1. The idea of maintaining one File with command separated values is ok if the classes are few (in 4 or 5). If we plan to write lot of Extension Classes, then that single file is becoming un-manageable 2. If repo is branched, then same file is touched by more people with their own entries

Re: Configuring Extension Module using Custom Annotation

2019-06-19 Thread Milles, Eric (TR Tech, Content & Ops)
tent & Ops) Subject: Re: Configuring Extension Module using Custom Annotation On 19.06.19 17:05, Milles, Eric (TR Tech, Content & Ops) wrote: > What is the concern or issue with the comma-separated property in the > org.codehaus.groovy.runtime.ExtensionModule file? > > > If an

Re: Configuring Extension Module using Custom Annotation

2019-06-19 Thread Jochen Theodorou
On 19.06.19 17:05, Milles, Eric (TR Tech, Content & Ops) wrote: What is the concern or issue with the comma-separated property in the org.codehaus.groovy.runtime.ExtensionModule file? If annotations were used, Groovy would need to scan the entire classpath looking for tagged classes.  The prope

Re: Configuring Extension Module using Custom Annotation

2019-06-19 Thread Milles, Eric (TR Tech, Content & Ops)
library on the classpath. From: adithyank Sent: Tuesday, June 18, 2019 4:21 PM To: d...@groovy.incubator.apache.org Subject: Configuring Extension Module using Custom Annotation Hi Groovy Team, We have a DSL plug-in platform in our company. I advice people to

Configuring Extension Module using Custom Annotation

2019-06-18 Thread adithyank
Hi Groovy Team, We have a DSL plug-in platform in our company. I advice people to write Extension module classes for existing Java classes for better readable code in groovy environment. In that perspective, I want to avoid every one having comma separated class name entries in `META-INF/groovy/or